lkml.org 
[lkml]   [2023]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectPreemption VS Interrupts
Hi everyone.

The API "spin_lock" disables preemption on the local processor.
The API "spin_lock_irqsave" disables preemption on the local
processor, and also disables interrupts on the local processor.

Thus, is disabling-interrupt independent of preemption?
In other words, can an interrupt still "preempt" a critical section
code even if preemption is disabled in the general sense (on a
non-preemptive kernel for example)?


Will be grateful for help in this regard, as it will clear up the
fuzziness going in my head.
Many thanks in advance !


Thanks and Regards,
Ajay

\
 
 \ /
  Last update: 2023-12-10 10:55    [W:0.033 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site