|
@@ -181,17 +181,13 @@ static struct clocksource timer_cs = {
|
|
.rating = 100,
|
|
.rating = 100,
|
|
.read = timer_cs_read,
|
|
.read = timer_cs_read,
|
|
.mask = CLOCKSOURCE_MASK(64),
|
|
.mask = CLOCKSOURCE_MASK(64),
|
|
- .shift = 2,
|
|
|
|
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
|
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
|
};
|
|
};
|
|
|
|
|
|
static __init int setup_timer_cs(void)
|
|
static __init int setup_timer_cs(void)
|
|
{
|
|
{
|
|
timer_cs_enabled = 1;
|
|
timer_cs_enabled = 1;
|
|
- timer_cs.mult = clocksource_hz2mult(sparc_config.clock_rate,
|
|
|
|
- timer_cs.shift);
|
|
|
|
-
|
|
|
|
- return __clocksource_register(&timer_cs);
|
|
|
|
|
|
+ return clocksource_register_hz(&timer_cs, sparc_config.clock_rate);
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|