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.

tick/nohz: Rename the tick handlers to more self-explanatory names

The current names of the tick handlers don't tell much about what different
between them. Use names that better reflect their role and resolution.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230912104406.312185-2-frederic@kernel.org

authored by

Frederic Weisbecker and committed by
Thomas Gleixner
dba428a6 1a6a4647

+4 -4
+4 -4
kernel/time/tick-sched.c
··· 1366 1366 /* 1367 1367 * The nohz low res interrupt handler 1368 1368 */ 1369 - static void tick_nohz_handler(struct clock_event_device *dev) 1369 + static void tick_nohz_lowres_handler(struct clock_event_device *dev) 1370 1370 { 1371 1371 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); 1372 1372 struct pt_regs *regs = get_irq_regs(); ··· 1412 1412 if (!tick_nohz_enabled) 1413 1413 return; 1414 1414 1415 - if (tick_switch_to_oneshot(tick_nohz_handler)) 1415 + if (tick_switch_to_oneshot(tick_nohz_lowres_handler)) 1416 1416 return; 1417 1417 1418 1418 /* ··· 1475 1475 * We rearm the timer until we get disabled by the idle code. 1476 1476 * Called with interrupts disabled. 1477 1477 */ 1478 - static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer) 1478 + static enum hrtimer_restart tick_nohz_highres_handler(struct hrtimer *timer) 1479 1479 { 1480 1480 struct tick_sched *ts = 1481 1481 container_of(timer, struct tick_sched, sched_timer); ··· 1524 1524 * Emulate tick processing via per-CPU hrtimers: 1525 1525 */ 1526 1526 hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD); 1527 - ts->sched_timer.function = tick_sched_timer; 1527 + ts->sched_timer.function = tick_nohz_highres_handler; 1528 1528 1529 1529 /* Get the next period (per-CPU) */ 1530 1530 hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update());