lkml.org 
[lkml]   [2016]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sched: horrible way to detect whether a task has been preempted
On Thu, 7 Apr 2016, Josh Poimboeuf wrote:

> To do that from C code, I guess we'd still need some arch-specific code
> in an asm() statement to do the actual push?

This could potentially be worked around I believe (thinking for example of
a onstack-allocated local variable with predefined contents that the
compiler would not be allowed to optimize out; certainly not the only
option).

Thanks,

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2016-04-08 01:01    [W:0.078 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site