|
@@ -751,7 +751,6 @@ static struct clocksource clocksource_tsc = {
|
|
.read = read_tsc,
|
|
.read = read_tsc,
|
|
.resume = resume_tsc,
|
|
.resume = resume_tsc,
|
|
.mask = CLOCKSOURCE_MASK(64),
|
|
.mask = CLOCKSOURCE_MASK(64),
|
|
- .shift = 22,
|
|
|
|
.flags = CLOCK_SOURCE_IS_CONTINUOUS |
|
|
.flags = CLOCK_SOURCE_IS_CONTINUOUS |
|
|
CLOCK_SOURCE_MUST_VERIFY,
|
|
CLOCK_SOURCE_MUST_VERIFY,
|
|
#ifdef CONFIG_X86_64
|
|
#ifdef CONFIG_X86_64
|
|
@@ -845,8 +844,6 @@ __cpuinit int unsynchronized_tsc(void)
|
|
|
|
|
|
static void __init init_tsc_clocksource(void)
|
|
static void __init init_tsc_clocksource(void)
|
|
{
|
|
{
|
|
- clocksource_tsc.mult = clocksource_khz2mult(tsc_khz,
|
|
|
|
- clocksource_tsc.shift);
|
|
|
|
if (tsc_clocksource_reliable)
|
|
if (tsc_clocksource_reliable)
|
|
clocksource_tsc.flags &= ~CLOCK_SOURCE_MUST_VERIFY;
|
|
clocksource_tsc.flags &= ~CLOCK_SOURCE_MUST_VERIFY;
|
|
/* lower the rating if we already know its unstable: */
|
|
/* lower the rating if we already know its unstable: */
|
|
@@ -854,7 +851,7 @@ static void __init init_tsc_clocksource(void)
|
|
clocksource_tsc.rating = 0;
|
|
clocksource_tsc.rating = 0;
|
|
clocksource_tsc.flags &= ~CLOCK_SOURCE_IS_CONTINUOUS;
|
|
clocksource_tsc.flags &= ~CLOCK_SOURCE_IS_CONTINUOUS;
|
|
}
|
|
}
|
|
- clocksource_register(&clocksource_tsc);
|
|
|
|
|
|
+ clocksource_register_khz(&clocksource_tsc, tsc_khz);
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_X86_64
|
|
#ifdef CONFIG_X86_64
|