Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched: Clean up and standardize #if/#else/#endif markers in sched/idle.c

- Use the standard #ifdef marker format for larger blocks,
where appropriate:

#if CONFIG_FOO
...
#else /* !CONFIG_FOO: */
...
#endif /* !CONFIG_FOO */

- Fix whitespace noise and other inconsistencies.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Shrikanth Hegde <sshegde@linux.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20250528080924.2273858-11-mingo@kernel.org

+4 -4
+4 -4
kernel/sched/idle.c
··· 52 52 return 1; 53 53 } 54 54 __setup("hlt", cpu_idle_nopoll_setup); 55 - #endif 55 + #endif /* CONFIG_GENERIC_IDLE_POLL_SETUP */ 56 56 57 57 static noinline int __cpuidle cpu_idle_poll(void) 58 58 { ··· 100 100 if (static_branch_unlikely(&arch_needs_tick_broadcast)) 101 101 tick_broadcast_exit(); 102 102 } 103 - #else 103 + #else /* !CONFIG_GENERIC_CLOCKEVENTS_BROADCAST_IDLE: */ 104 104 static inline void cond_tick_broadcast_enter(void) { } 105 105 static inline void cond_tick_broadcast_exit(void) { } 106 - #endif 106 + #endif /* !CONFIG_GENERIC_CLOCKEVENTS_BROADCAST_IDLE */ 107 107 108 108 /** 109 109 * default_idle_call - Default CPU idle routine. ··· 444 444 { 445 445 return WARN_ON_ONCE(1); 446 446 } 447 - #endif 447 + #endif /* CONFIG_SMP */ 448 448 449 449 /* 450 450 * Idle tasks are unconditionally rescheduled: