mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
clocksource: cris: Convert to clocksource_register_khz
This converts the cris architecture to use clocksource_register_khz This is untested, so any help from maintainers would be appreciated. CC: Mikael Starvik <[email protected]> CC: Jesper Nilsson <[email protected]> CC: Thomas Gleixner <[email protected]> Signed-off-by: John Stultz <[email protected]>
This commit is contained in:
1 parent
a139723bec
commit
027f6ad7bf
1 file changed
+1
-3
@@ -47,14 +47,12 @@ static struct clocksource cont_rotime = {
|
||||
.rating = 300,
|
||||
.read = read_cont_rotime,
|
||||
.mask = CLOCKSOURCE_MASK(32),
|
||||
.shift = 10,
|
||||
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
||||
};
|
||||
|
||||
static int __init etrax_init_cont_rotime(void)
|
||||
{
|
||||
cont_rotime.mult = clocksource_khz2mult(100000, cont_rotime.shift);
|
||||
clocksource_register(&cont_rotime);
|
||||
clocksource_register_khz(&cont_rotime, 100000);
|
||||
return 0;
|
||||
}
|
||||
arch_initcall(etrax_init_cont_rotime);
|
||||
|
||||
Reference in new issue
Block a user