These routines disable hard interrupts on the local CPU, and
restore them. They are reentrant; saving the previous state in
their one unsigned long flags
argument. If you
know that interrupts are enabled, you can simply use
local_irq_disable()
and
local_irq_enable()
.