|
@@ -48,7 +48,7 @@ bad_ctc:
|
48
|
48
|
}
|
49
|
49
|
static uint32_t clocks_per_second = 0;
|
50
|
50
|
|
51
|
|
-static tick_t rtdsc_currticks(void)
|
|
51
|
+static tick_t rdtsc_currticks(void)
|
52
|
52
|
{
|
53
|
53
|
uint32_t clocks_high, clocks_low;
|
54
|
54
|
uint32_t currticks;
|
|
@@ -64,7 +64,7 @@ static tick_t rtdsc_currticks(void)
|
64
|
64
|
return currticks;
|
65
|
65
|
}
|
66
|
66
|
|
67
|
|
-static int rtdsc_ts_init(void)
|
|
67
|
+static int rdtsc_ts_init(void)
|
68
|
68
|
{
|
69
|
69
|
|
70
|
70
|
struct cpuinfo_x86 cpu_info;
|
|
@@ -73,19 +73,19 @@ static int rtdsc_ts_init(void)
|
73
|
73
|
if (cpu_info.features & X86_FEATURE_TSC) {
|
74
|
74
|
clocks_per_second = calibrate_tsc();
|
75
|
75
|
if (clocks_per_second) {
|
76
|
|
- DBG("RTDSC Ticksource installed. CPU running at %ld Mhz\n",
|
|
76
|
+ DBG("RDTSC ticksource installed. CPU running at %ld Mhz\n",
|
77
|
77
|
clocks_per_second/(1000*1000));
|
78
|
78
|
return 0;
|
79
|
79
|
}
|
80
|
80
|
}
|
81
|
81
|
|
82
|
|
- DBG("RTDSC timer not available on this machine.\n");
|
|
82
|
+ DBG("RDTSC ticksource not available on this machine.\n");
|
83
|
83
|
return -ENODEV;
|
84
|
84
|
}
|
85
|
85
|
|
86
|
|
-struct timer rtdsc_ts __timer (01) = {
|
87
|
|
- .init = rtdsc_ts_init,
|
|
86
|
+struct timer rdtsc_ts __timer (01) = {
|
|
87
|
+ .init = rdtsc_ts_init,
|
88
|
88
|
.udelay = generic_currticks_udelay,
|
89
|
|
- .currticks = rtdsc_currticks,
|
|
89
|
+ .currticks = rdtsc_currticks,
|
90
|
90
|
};
|
91
|
91
|
|