Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d454157b authored by Akinobu Mita's avatar Akinobu Mita Committed by Ingo Molnar
Browse files

x86: cleanup clocksource_hz2mult usage



Remove the magic number in the second argument of clocksource_hz2mult()

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent b1fceac2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -224,7 +224,8 @@ static int __init init_pit_clocksource(void)
	    pit_clockevent.mode != CLOCK_EVT_MODE_PERIODIC)
		return 0;

	clocksource_pit.mult = clocksource_hz2mult(CLOCK_TICK_RATE, 20);
	clocksource_pit.mult = clocksource_hz2mult(CLOCK_TICK_RATE,
						   clocksource_pit.shift);
	return clocksource_register(&clocksource_pit);
}
arch_initcall(init_pit_clocksource);