lkml.org 
[lkml]   [2014]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V4 02/16] perf, core: introduce pmu context switch callback
On Mon, Jun 30, 2014 at 04:50:39PM +0800, Yan, Zheng wrote:
> @@ -2362,6 +2363,58 @@ unlock:
> }
> }
>
> +void perf_sched_cb_disable(struct pmu *pmu)
> +{
> + __get_cpu_var(perf_sched_cb_usages)--;
> +}
> +
> +void perf_sched_cb_enable(struct pmu *pmu)
> +{
> + __get_cpu_var(perf_sched_cb_usages)++;
> +}

Those should not be called {dis,en}able, they don't as such do that.
Also we have: this_cpu_{inc,dec} for this.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-07-02 12:41    [W:0.148 / U:6.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site