lkml.org 
[lkml]   [2016]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [RFC PATCH] x86/delay: Do not use cpu_tss in preemptible ctxt in delay_mwaitx()
On Mar 9, 2016 3:38 AM, "Borislav Petkov" <bp@alien8.de> wrote:
>
> From: Borislav Petkov <bp@suse.de>
>
> So Andy had a good idea about using a cacheline-aligned, seldomly used
> per-cpu var as the MONITORX target but we can't use it in preemptible
> context. The first simple idea I have is to disable preemption around us
> dereffing it.

What's the actual problem? Is it the preempt warnings and, if so,
would raw_cpu_ptr fix it?

It may pay to move it into the loop, though.

--Andy

\
 
 \ /
  Last update: 2016-03-09 19:41    [W:0.048 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site