diff options
author | john stultz <johnstul@us.ibm.com> | 2007-02-16 04:28:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 11:14:00 -0500 |
commit | 2d0c87c3bc49c60ab5bbac401fb1ef37ff10bbe2 (patch) | |
tree | 4d32459045a40e655aa490305018a449e2891a32 /arch/i386/kernel/acpi/boot.c | |
parent | acc9a9dcdd0dd1d295c2f2ee02c27c761bd63cb1 (diff) |
[PATCH] time: x86_64: hpet_address cleanup
In preparation for supporting generic timekeeping, this patch cleans up
x86-64's use of vxtime.hpet_address, changing it to just hpet_address as is
also used in i386. This is necessary since the vxtime structure will be going
away.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andi Kleen <ak@muc.de>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/i386/kernel/acpi/boot.c')
-rw-r--r-- | arch/i386/kernel/acpi/boot.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/arch/i386/kernel/acpi/boot.c b/arch/i386/kernel/acpi/boot.c index 56818cf5bc40..fb3e72328a5a 100644 --- a/arch/i386/kernel/acpi/boot.c +++ b/arch/i386/kernel/acpi/boot.c | |||
@@ -616,6 +616,7 @@ static int __init acpi_parse_sbf(struct acpi_table_header *table) | |||
616 | } | 616 | } |
617 | 617 | ||
618 | #ifdef CONFIG_HPET_TIMER | 618 | #ifdef CONFIG_HPET_TIMER |
619 | #include <asm/hpet.h> | ||
619 | 620 | ||
620 | static int __init acpi_parse_hpet(struct acpi_table_header *table) | 621 | static int __init acpi_parse_hpet(struct acpi_table_header *table) |
621 | { | 622 | { |
@@ -646,24 +647,11 @@ static int __init acpi_parse_hpet(struct acpi_table_header *table) | |||
646 | hpet_res->end = (1 * 1024) - 1; | 647 | hpet_res->end = (1 * 1024) - 1; |
647 | } | 648 | } |
648 | 649 | ||
649 | #ifdef CONFIG_X86_64 | 650 | hpet_address = hpet_tbl->address.address; |
650 | vxtime.hpet_address = hpet_tbl->address.address; | ||
651 | |||
652 | printk(KERN_INFO PREFIX "HPET id: %#x base: %#lx\n", | 651 | printk(KERN_INFO PREFIX "HPET id: %#x base: %#lx\n", |
653 | hpet_tbl->id, vxtime.hpet_address); | 652 | hpet_tbl->id, hpet_address); |
654 | |||
655 | res_start = vxtime.hpet_address; | ||
656 | #else /* X86 */ | ||
657 | { | ||
658 | extern unsigned long hpet_address; | ||
659 | 653 | ||
660 | hpet_address = hpet_tbl->address.address; | 654 | res_start = hpet_address; |
661 | printk(KERN_INFO PREFIX "HPET id: %#x base: %#lx\n", | ||
662 | hpet_tbl->id, hpet_address); | ||
663 | |||
664 | res_start = hpet_address; | ||
665 | } | ||
666 | #endif /* X86 */ | ||
667 | 655 | ||
668 | if (hpet_res) { | 656 | if (hpet_res) { |
669 | hpet_res->start = res_start; | 657 | hpet_res->start = res_start; |