http://git.etherboot.org
/
people
/
mdeck
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix the rdtsc namimg
[people/mdeck/gpxe.git]
/
src
/
arch
/
i386
/
drivers
/
timer_rdtsc.c
diff --git
a/src/arch/i386/drivers/timer_rtdsc.c
b/src/arch/i386/drivers/timer_rdtsc.c
similarity index 85%
rename from
src/arch/i386/drivers/timer_rtdsc.c
rename to
src/arch/i386/drivers/timer_rdtsc.c
index
336e3e6
..
57b8826
100644
(file)
--- a/
src/arch/i386/drivers/timer_rtdsc.c
+++ b/
src/arch/i386/drivers/timer_rdtsc.c
@@
-48,7
+48,7
@@
bad_ctc:
}
static uint32_t clocks_per_second = 0;
}
static uint32_t clocks_per_second = 0;
-static tick_t r
td
sc_currticks(void)
+static tick_t r
dt
sc_currticks(void)
{
uint32_t clocks_high, clocks_low;
uint32_t currticks;
{
uint32_t clocks_high, clocks_low;
uint32_t currticks;
@@
-64,7
+64,7
@@
static tick_t rtdsc_currticks(void)
return currticks;
}
return currticks;
}
-static int r
td
sc_ts_init(void)
+static int r
dt
sc_ts_init(void)
{
struct cpuinfo_x86 cpu_info;
{
struct cpuinfo_x86 cpu_info;
@@
-73,19
+73,19
@@
static int rtdsc_ts_init(void)
if (cpu_info.features & X86_FEATURE_TSC) {
clocks_per_second = calibrate_tsc();
if (clocks_per_second) {
if (cpu_info.features & X86_FEATURE_TSC) {
clocks_per_second = calibrate_tsc();
if (clocks_per_second) {
- DBG("R
TDSC T
icksource installed. CPU running at %ld Mhz\n",
+ DBG("R
DTSC t
icksource installed. CPU running at %ld Mhz\n",
clocks_per_second/(1000*1000));
return 0;
}
}
clocks_per_second/(1000*1000));
return 0;
}
}
- DBG("R
TDSC timer
not available on this machine.\n");
+ DBG("R
DTSC ticksource
not available on this machine.\n");
return -ENODEV;
}
return -ENODEV;
}
-struct timer r
td
sc_ts __timer (01) = {
- .init = r
td
sc_ts_init,
+struct timer r
dt
sc_ts __timer (01) = {
+ .init = r
dt
sc_ts_init,
.udelay = generic_currticks_udelay,
.udelay = generic_currticks_udelay,
- .currticks = r
td
sc_currticks,
+ .currticks = r
dt
sc_currticks,
};
};