lkml.org 
[lkml]   [2013]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86 idle: repair large-server 50-watt idle-power regression
On 12/19/2013 08:02 AM, Ingo Molnar wrote:
>>
>> __monitor() currently doesn't, which is idiotic.
>
> Hm, __monitor() seems to take a void *:
>
> arch/x86/include/asm/processor.h:static inline void __monitor(const void *eax, unsigned long ecx,
>
> So writing:
>
> if (this_cpu_has(X86_FEATURE_CLFLUSH_MONITOR))
> clflush(&current_thread_info()->flags);
>
> __monitor(&current_thread_info()->flags, 0, 0);
>

Yes, brain failure on my part.

-hpa




\
 
 \ /
  Last update: 2013-12-19 18:01    [W:0.285 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site