]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
fix the rdtsc namimg
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>
Sun, 2 Mar 2008 02:19:29 +0000 (05:19 +0300)
committerAlexey Zaytsev <alexey.zaytsev@gmail.com>
Sun, 2 Mar 2008 02:19:29 +0000 (05:19 +0300)
src/arch/i386/drivers/timer_rdtsc.c [moved from src/arch/i386/drivers/timer_rtdsc.c with 85% similarity]
src/arch/i386/include/bits/errfile.h
src/config.h
src/core/config.c

similarity index 85%
rename from src/arch/i386/drivers/timer_rtdsc.c
rename to src/arch/i386/drivers/timer_rdtsc.c
index 336e3e6fc37164947962524bb0f75e0505280495..57b8826c7dcbd0e0c5fa2bc5edcf4e7344b1dc7e 100644 (file)
@@ -48,7 +48,7 @@ bad_ctc:
 }
 static uint32_t clocks_per_second = 0;
 
-static tick_t rtdsc_currticks(void)
+static tick_t rdtsc_currticks(void)
 {
        uint32_t clocks_high, clocks_low;
        uint32_t currticks;
@@ -64,7 +64,7 @@ static tick_t rtdsc_currticks(void)
        return currticks;
 }
 
-static int rtdsc_ts_init(void)
+static int rdtsc_ts_init(void)
 {
 
        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) {
-                       DBG("RTDSC Ticksource installed. CPU running at %ld Mhz\n",
+                       DBG("RDTSC ticksource installed. CPU running at %ld Mhz\n",
                                clocks_per_second/(1000*1000));
                        return 0;
                }
        }
 
-       DBG("RTDSC timer not available on this machine.\n");
+       DBG("RDTSC ticksource not available on this machine.\n");
        return -ENODEV;
 }
 
-struct timer rtdsc_ts __timer (01) = {
-       .init = rtdsc_ts_init,
+struct timer rdtsc_ts __timer (01) = {
+       .init = rdtsc_ts_init,
        .udelay = generic_currticks_udelay,
-       .currticks = rtdsc_currticks,
+       .currticks = rdtsc_currticks,
 };
 
index ce58eefd048fbb242385dbbd25688d715ad80e09..0f14021486c77ea584253d6e17d97c2d73fac71a 100644 (file)
@@ -26,7 +26,7 @@
 #define ERRFILE_undionly        ( ERRFILE_ARCH | ERRFILE_NET | 0x00030000 )
 #define ERRFILE_undirom                 ( ERRFILE_ARCH | ERRFILE_NET | 0x00040000 )
 
-#define ERRFILE_timer_rtdsc    ( ERRFILE_ARCH | ERRFILE_DRIVER | 0x00000000 )
+#define ERRFILE_timer_rdtsc    ( ERRFILE_ARCH | ERRFILE_DRIVER | 0x00000000 )
 #define ERRFILE_timer_bios     ( ERRFILE_ARCH | ERRFILE_DRIVER | 0x00010000 )
 
 /** @} */
index af0df1b69ff5040eacaf1d743c4fe3c31a818ce1..4aac654a24ef7e4c6a020e7e835f808d2da9cebe 100644 (file)
@@ -24,7 +24,7 @@
 #undef CONSOLE_PC_KBD          /* Direct access to PC keyboard */
 
 #define TIMER_BIOS
-#define TIMER_RTDSC
+#define TIMER_RDTSC
 
 /* @END general.h */
 
index f3e17b62e477f297be7c5003aade5ae4a87e461b..94fd0b82c8ddfbdfb3a550552ef767d2d9b3c643 100644 (file)
@@ -82,8 +82,8 @@ REQUIRE_OBJECT ( syslog );
 REQUIRE_OBJECT ( timer_bios );
 #endif
 
-#ifdef TIMER_RTDSC
-REQUIRE_OBJECT ( timer_rtdsc );
+#ifdef TIMER_RDTSC
+REQUIRE_OBJECT ( timer_rdtsc );
 #endif
 /*
  * Drag in all requested protocols