lkml.org 
[lkml]   [2004]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectuse of PREEMPT_ACTIVE ?
From
hello,

the PREEMPT_ACTIVE flag set by preempt_schedule() or during return of
interrupt / exception / syscall. And it's tested in schedule() to
avoid some operations like deactivate_task().

Our purpose is to force deactivation of the task. So we planned to set
task state to TASK_INTERRUPTIBLE value and then to call
schedule(). However the PREEMPT_ACTIVE flag can prevent it.

So what is the significance of the PREEMPT_ACTIVE flag and the test in
schedule() ?

Sincerly, thanks in advance,
--
Julien

[unhandled content-type:application/x-pkcs7-signature]
\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.051 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site