lkml.org 
[lkml]   [2022]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 09/13] perf/x86/amd: add idle hooks for branch sampling
On Wed, Jan 26, 2022 at 03:34:50PM -0800, Stephane Eranian wrote:
> +static inline void perf_lopwr_cb(bool mode)
> +{
> + /* key enabled only when BRS is available */
> + if (static_branch_unlikely(&perf_lopwr_needed))
> + perf_amd_brs_lopwr_cb(mode);
> +}

static_call() might be better at this point..

\
 
 \ /
  Last update: 2022-01-27 14:08    [W:0.115 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site