x86: move pmtmr related declarations
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Jan 2008 12:30:18 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:18 +0000 (13:30 +0100)
Move more stuff out of proto.h

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic_64.c
arch/x86/kernel/pmtimer_64.c
include/asm-x86/proto.h
include/linux/acpi_pmtmr.h

index 3de3764a862c9e029cb024eee1d6f066d3aff08b..0cb14d4c2c5c3d6f3db0fff8c527486738d9f1b0 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/module.h>
 #include <linux/ioport.h>
 #include <linux/clockchips.h>
+#include <linux/acpi_pmtmr.h>
 
 #include <asm/atomic.h>
 #include <asm/smp.h>
index ae8f91214f1564e510cf63c49efe079eb504853a..b112406f19961932f1505aeafa09d402a2ca45b1 100644 (file)
 #include <linux/time.h>
 #include <linux/init.h>
 #include <linux/cpumask.h>
+#include <linux/acpi_pmtmr.h>
+
 #include <asm/io.h>
 #include <asm/proto.h>
 #include <asm/msr.h>
 #include <asm/vsyscall.h>
 
-#define ACPI_PM_MASK 0xFFFFFF /* limit it to 24 bits */
-
 static inline u32 cyc2us(u32 cycles)
 {
        /* The Power Management Timer ticks at 3.579545 ticks per microsecond.
index a47e526716f4862740325096c505ad6b0bfb2c52..9074aa7ebc6510ade49a43d33e8b029954856fe5 100644 (file)
@@ -25,15 +25,6 @@ extern void ia32_sysenter_target(void);
 extern void config_acpi_tables(void);
 extern void ia32_syscall(void);
 
-extern int pmtimer_mark_offset(void);
-extern void pmtimer_resume(void);
-extern void pmtimer_wait(unsigned);
-extern unsigned int do_gettimeoffset_pm(void);
-#ifdef CONFIG_X86_PM_TIMER
-extern u32 pmtmr_ioport;
-#else
-#define pmtmr_ioport 0
-#endif
 extern int nohpet;
 
 extern void reserve_bootmem_generic(unsigned long phys, unsigned len);
index 1d0ef1ae80362d50f1b620b54c01313d6c46b936..7e3d2859be50230b9b2755288a53d8fb693145b0 100644 (file)
@@ -25,6 +25,8 @@ static inline u32 acpi_pm_read_early(void)
        return acpi_pm_read_verified() & ACPI_PM_MASK;
 }
 
+extern void pmtimer_wait(unsigned);
+
 #else
 
 static inline u32 acpi_pm_read_early(void)