When you have multiple processors present in the system, and want to find out on which the processor your driver code is running, use smp_processor_id().