Skip to content

Commit dba428a

Browse files
Frederic WeisbeckerKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1a6a464 commit dba428a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/time/tick-sched.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ void tick_nohz_idle_exit(void)
13661366
/*
13671367
* The nohz low res interrupt handler
13681368
*/
1369-
static void tick_nohz_handler(struct clock_event_device *dev)
1369+
static void tick_nohz_lowres_handler(struct clock_event_device *dev)
13701370
{
13711371
struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched);
13721372
struct pt_regs *regs = get_irq_regs();
@@ -1412,7 +1412,7 @@ static void tick_nohz_switch_to_nohz(void)
14121412
if (!tick_nohz_enabled)
14131413
return;
14141414

1415-
if (tick_switch_to_oneshot(tick_nohz_handler))
1415+
if (tick_switch_to_oneshot(tick_nohz_lowres_handler))
14161416
return;
14171417

14181418
/*
@@ -1475,7 +1475,7 @@ void tick_irq_enter(void)
14751475
* We rearm the timer until we get disabled by the idle code.
14761476
* Called with interrupts disabled.
14771477
*/
1478-
static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer)
1478+
static enum hrtimer_restart tick_nohz_highres_handler(struct hrtimer *timer)
14791479
{
14801480
struct tick_sched *ts =
14811481
container_of(timer, struct tick_sched, sched_timer);
@@ -1524,7 +1524,7 @@ void tick_setup_sched_timer(void)
15241524
* Emulate tick processing via per-CPU hrtimers:
15251525
*/
15261526
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;
15281528

15291529
/* Get the next period (per-CPU) */
15301530
hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update());

0 commit comments

Comments
 (0)