Excerpt: Use local_irq_save to disable interrupts on the local processor and remember their previous state. The flags can be passed to local_irq_restore to restore the previous interrupt state.
void local_irq_save(unsigned long flags);
void local_irq_restore(unsigned long flags);
The spinlock version will disable interrupts on all the cores*