RE: [PATCH] printk: add cpu id information to printk() output

From: Luck, Tony
Date: Fri Sep 15 2023 - 12:31:51 EST


> + return in_task() ? task_pid_nr(current) | (smp_processor_id() << CPU_ID_SHIFT) :

There are contexts and CONFIG options around pre-emption where smp_processor_id()
will throw a warning. Use raw_smp_processor_id().

-Tony