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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to