diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c index e00e318d1f6..354787bd489 100644 --- a/drivers/note/note_driver.c +++ b/drivers/note/note_driver.c @@ -275,7 +275,7 @@ static inline int note_isenabled(void) #ifdef CONFIG_SMP /* Ignore notes that are not in the set of monitored CPUs */ - if (CPU_ISSET(&g_note_filter.mode.cpuset, this_cpu()) == 0) + if (CPU_ISSET(this_cpu(), &g_note_filter.mode.cpuset) == 0) { /* Not in the set of monitored CPUs. Do not log the note. */