Re: [RFCv2 2/6] sched: Introduce switch to enable TurboSched mode

From: Peter Zijlstra
Date: Wed May 15 2019 - 12:32:34 EST


On Wed, May 15, 2019 at 07:23:18PM +0530, Parth Shah wrote:
> +void turbo_sched_get(void)
> +{
> + spin_lock(&turbo_sched_lock);
> + if (!turbo_sched_count++)
> + static_branch_enable(&__turbo_sched_enabled);
> + spin_unlock(&turbo_sched_lock);
> +}

Muwhahaha, you didn't test this code, did you?