Re: [PATCH V5 04/25] perf/x86/intel: Hybrid PMU support for perf capabilities

From: Peter Zijlstra
Date: Thu Apr 08 2021 - 13:01:18 EST


On Mon, Apr 05, 2021 at 08:10:46AM -0700, kan.liang@xxxxxxxxxxxxxxx wrote:
> +#define is_hybrid() (!!x86_pmu.num_hybrid_pmus)

Given this is sprinkled all over the place, can you make this a
static_key_false + static_branch_unlikely() such that the hybrid case is
out-of-line?