lkml.org 
[lkml]   [2019]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFCv2 2/6] sched: Introduce switch to enable TurboSched mode
From
Date


On 5/15/19 10:00 PM, Peter Zijlstra wrote:
> 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?
>

yeah, I didn't see task-sleep problem coming in.
I will change to mutex.

Thanks for pointing out.

\
 
 \ /
  Last update: 2019-05-16 18:17    [W:0.059 / U:29.224 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site