diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-06 08:01:00 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-09-10 20:35:53 -0400 |
commit | 455a7c87e8227d83b7bd8982285fed95546cb8c9 (patch) | |
tree | 757a0db856d9e07af8a84116aa85ba5367a6a3d3 /src/util.h | |
parent | a1a32838257368a26b3a74c4c8acf4c6d7b616e2 (diff) | |
download | seabios-hppa-455a7c87e8227d83b7bd8982285fed95546cb8c9.zip seabios-hppa-455a7c87e8227d83b7bd8982285fed95546cb8c9.tar.gz seabios-hppa-455a7c87e8227d83b7bd8982285fed95546cb8c9.tar.bz2 |
add acpi pmtimer support
This patch makes seabios use the acpi pmtimer instead of tsc for
timekeeping. The pmtimer has a fixed frequency and doesn't need
calibration, thus it doesn't suffer from calibration errors due to a
loaded host machine.
[ v4: mask port ioport read ]
[ v2: add CONFIG_PMTIMER ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -282,6 +282,7 @@ void lpt_setup(void); // clock.c #define PIT_TICK_RATE 1193180 // Underlying HZ of PIT #define PIT_TICK_INTERVAL 65536 // Default interval for 18.2Hz timer +void pmtimer_init(u16 ioport, u32 khz); int check_tsc(u64 end); void timer_setup(void); void ndelay(u32 count); |