Closed seekstar closed 3 years ago
The static variable flags is shared among the cpus. So if two cpus call local_irq_save(flags) in the same time, one CPU will overwrite flags the other CPU wrote. If I am wrong please correct me.
flags
local_irq_save(flags)
Guess you are right: I don't see why the flags is declared static.
The static variable
flags
is shared among the cpus. So if two cpus calllocal_irq_save(flags)
in the same time, one CPU will overwriteflags
the other CPU wrote. If I am wrong please correct me.