lkml.org 
[lkml]   [2014]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: preempt_check_resched() gone?
On Thu, 6 Mar 2014, Ville Syrjälä wrote:
> Hi,
>
> It appears preempt_check_resched() is no longer available for modules
> since [1]. So now I'm left wondering what is one supposed to use after
> local_irq_enable(). Documentation/preempt-locking.txt still says one
> should do a check, but the tool to do that was taken away.

The documentation is slightly misleading. The point is:

If you have an irq disabled section and you do a wakeup inside this
section which causes the need resched bit to be set, then
local_irq_enable/restore wont do an preemption check.

If you merily poke at a few device registers then nothing will set
need resched and you're good.

Thanks,

tglx

\
 
 \ /
  Last update: 2014-03-06 22:41    [W:0.041 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site