[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200720162241.GU10769@hirez.programming.kicks-ass.net>
Date: Mon, 20 Jul 2020 18:22:41 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: kan.liang@...ux.intel.com
Cc: acme@...hat.com, mingo@...nel.org, linux-kernel@...r.kernel.org,
jolsa@...nel.org, eranian@...gle.com,
alexander.shishkin@...ux.intel.com, ak@...ux.intel.com
Subject: Re: [PATCH V6 06/14] perf/x86/intel: Use switch in
intel_pmu_disable/enable_event
On Fri, Jul 17, 2020 at 07:05:46AM -0700, kan.liang@...ux.intel.com wrote:
> From: Kan Liang <kan.liang@...ux.intel.com>
>
> Many items are checked in the intel_pmu_disable/enable_event. More items
> will be added later, e.g. perf metrics events.
>
> Use switch, which is more efficient, to replace the if-else.
Perhaps explain how; does this actually generate a jump-table?
Powered by blists - more mailing lists