In most of our kernel-side code, translator-generated or runtime, we use the kosher smp_processor_id function to get the cpu number. Considering that we always disable preemption, it seems useful to switch to raw_smp_processor_id() in several spots, which would exclude the redundant runtime checks compiled into the plain variant.
Created attachment 3083 [details] patch for using raw_smp_processor_id Seem no much available spots, two direct ones. As for the functions calling preempt_disable like spin_lock_irq, the following reference to smp_processor_id isn't easily found.
Probably unnecessary in light of bug #13641.