smp_processor_id
smp_processor_id() returns the current processor number, between 0 and NR_CPUS (the maximum number of CPUs supported by Linux, currently 32). These values are not necessarily continuous.
smp_processor_id()
NR_CPUS
local_bh_disable()
local_bh_enable()