Skip to content

Commit

Permalink
x86: i8253: Consolidate definitions of global_clock_event
Browse files Browse the repository at this point in the history
There are multiple declarations of global_clock_event in header files
specific to particular clock event implementations.  Consolidate them
in <asm/time.h> and make sure all users include that header.

Signed-off-by: Ralf Baechle <[email protected]>
Cc: Venkatesh Pallipadi (Venki) <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
ralfbaechle authored and KAGA-KOKO committed Jun 9, 2011
1 parent 75bba01 commit 16f871b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion arch/x86/include/asm/apb_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#define APBT_DEV_USED 1

extern void apbt_time_init(void);
extern struct clock_event_device *global_clock_event;
extern unsigned long apbt_quick_calibrate(void);
extern int arch_setup_apbt_irqs(int irq, int trigger, int mask, int cpu);
extern void apbt_setup_secondary_clock(void);
Expand Down
2 changes: 0 additions & 2 deletions arch/x86/include/asm/i8253.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#define PIT_LATCH LATCH

extern struct clock_event_device *global_clock_event;

extern void setup_pit_timer(void);

#endif /* _ASM_X86_I8253_H */
6 changes: 4 additions & 2 deletions arch/x86/include/asm/time.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#ifndef _ASM_X86_TIME_H
#define _ASM_X86_TIME_H

extern void hpet_time_init(void);

#include <linux/clocksource.h>
#include <asm/mc146818rtc.h>

extern void hpet_time_init(void);
extern void time_init(void);

extern struct clock_event_device *global_clock_event;

#endif /* _ASM_X86_TIME_H */
1 change: 1 addition & 0 deletions arch/x86/kernel/apb_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <asm/fixmap.h>
#include <asm/apb_timer.h>
#include <asm/mrst.h>
#include <asm/time.h>

#define APBT_MASK CLOCKSOURCE_MASK(32)
#define APBT_SHIFT 22
Expand Down
1 change: 1 addition & 0 deletions arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <asm/hpet.h>
#include <asm/idle.h>
#include <asm/mtrr.h>
#include <asm/time.h>
#include <asm/smp.h>
#include <asm/mce.h>
#include <asm/tsc.h>
Expand Down
1 change: 1 addition & 0 deletions arch/x86/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include <asm/fixmap.h>
#include <asm/hpet.h>
#include <asm/time.h>

#define HPET_MASK CLOCKSOURCE_MASK(32)

Expand Down
1 change: 1 addition & 0 deletions arch/x86/kernel/i8253.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/io.h>

#include <asm/hpet.h>
#include <asm/time.h>
#include <asm/smp.h>

/*
Expand Down

0 comments on commit 16f871b

Please sign in to comment.