diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-08-20 09:35:23 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-08-31 03:35:46 -0400 |
commit | dd3e6e8c6e7a2294f137c4dbccb3e73e7fa8ba15 (patch) | |
tree | 0ea996a1f430527463bf58d9f8732b69fc8e8272 /arch | |
parent | ecce85089e6d31eed7535b68f5acdd194265690c (diff) |
x86: Prepare unification of time_32/64.c
Unify the top comment and the includes.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/time_32.c | 44 | ||||
-rw-r--r-- | arch/x86/kernel/time_64.c | 13 |
2 files changed, 18 insertions, 39 deletions
diff --git a/arch/x86/kernel/time_32.c b/arch/x86/kernel/time_32.c index 6fef4ea1e7a6..acbaefd61e8e 100644 --- a/arch/x86/kernel/time_32.c +++ b/arch/x86/kernel/time_32.c | |||
@@ -1,45 +1,27 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 1991, 1992, 1995 Linus Torvalds | 2 | * Copyright (c) 1991,1992,1995 Linus Torvalds |
3 | * Copyright (c) 1994 Alan Modra | ||
4 | * Copyright (c) 1995 Markus Kuhn | ||
5 | * Copyright (c) 1996 Ingo Molnar | ||
6 | * Copyright (c) 1998 Andrea Arcangeli | ||
7 | * Copyright (c) 2002,2006 Vojtech Pavlik | ||
8 | * Copyright (c) 2003 Andi Kleen | ||
3 | * | 9 | * |
4 | * This file contains the PC-specific time handling details: | ||
5 | * reading the RTC at bootup, etc.. | ||
6 | * 1994-07-02 Alan Modra | ||
7 | * fixed set_rtc_mmss, fixed time.year for >= 2000, new mktime | ||
8 | * 1995-03-26 Markus Kuhn | ||
9 | * fixed 500 ms bug at call to set_rtc_mmss, fixed DS12887 | ||
10 | * precision CMOS clock update | ||
11 | * 1996-05-03 Ingo Molnar | ||
12 | * fixed time warps in do_[slow|fast]_gettimeoffset() | ||
13 | * 1997-09-10 Updated NTP code according to technical memorandum Jan '96 | ||
14 | * "A Kernel Model for Precision Timekeeping" by Dave Mills | ||
15 | * 1998-09-05 (Various) | ||
16 | * More robust do_fast_gettimeoffset() algorithm implemented | ||
17 | * (works with APM, Cyrix 6x86MX and Centaur C6), | ||
18 | * monotonic gettimeofday() with fast_get_timeoffset(), | ||
19 | * drift-proof precision TSC calibration on boot | ||
20 | * (C. Scott Ananian <cananian@alumni.princeton.edu>, Andrew D. | ||
21 | * Balsa <andrebalsa@altern.org>, Philip Gladstone <philip@raptor.com>; | ||
22 | * ported from 2.0.35 Jumbo-9 by Michael Krause <m.krause@tu-harburg.de>). | ||
23 | * 1998-12-16 Andrea Arcangeli | ||
24 | * Fixed Jumbo-9 code in 2.1.131: do_gettimeofday was missing 1 jiffy | ||
25 | * because was not accounting lost_ticks. | ||
26 | * 1998-12-24 Copyright (C) 1998 Andrea Arcangeli | ||
27 | * Fixed a xtime SMP race (we need the xtime_lock rw spinlock to | ||
28 | * serialize accesses to xtime/lost_ticks). | ||
29 | */ | 10 | */ |
30 | 11 | ||
31 | #include <linux/clockchips.h> | 12 | #include <linux/clockchips.h> |
32 | #include <linux/init.h> | ||
33 | #include <linux/interrupt.h> | 13 | #include <linux/interrupt.h> |
34 | #include <linux/time.h> | 14 | #include <linux/time.h> |
35 | #include <linux/mca.h> | 15 | #include <linux/mca.h> |
36 | 16 | ||
37 | #include <asm/setup.h> | 17 | #include <asm/vsyscall.h> |
38 | #include <asm/hpet.h> | 18 | #include <asm/x86_init.h> |
39 | #include <asm/time.h> | ||
40 | #include <asm/timer.h> | ||
41 | #include <asm/i8259.h> | 19 | #include <asm/i8259.h> |
42 | #include <asm/i8253.h> | 20 | #include <asm/i8253.h> |
21 | #include <asm/timer.h> | ||
22 | #include <asm/hpet.h> | ||
23 | #include <asm/time.h> | ||
24 | #include <asm/nmi.h> | ||
43 | 25 | ||
44 | int timer_ack; | 26 | int timer_ack; |
45 | 27 | ||
diff --git a/arch/x86/kernel/time_64.c b/arch/x86/kernel/time_64.c index 38a7df94c107..45914f8844a7 100644 --- a/arch/x86/kernel/time_64.c +++ b/arch/x86/kernel/time_64.c | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * "High Precision Event Timer" based timekeeping. | ||
3 | * | ||
4 | * Copyright (c) 1991,1992,1995 Linus Torvalds | 2 | * Copyright (c) 1991,1992,1995 Linus Torvalds |
5 | * Copyright (c) 1994 Alan Modra | 3 | * Copyright (c) 1994 Alan Modra |
6 | * Copyright (c) 1995 Markus Kuhn | 4 | * Copyright (c) 1995 Markus Kuhn |
@@ -8,23 +6,22 @@ | |||
8 | * Copyright (c) 1998 Andrea Arcangeli | 6 | * Copyright (c) 1998 Andrea Arcangeli |
9 | * Copyright (c) 2002,2006 Vojtech Pavlik | 7 | * Copyright (c) 2002,2006 Vojtech Pavlik |
10 | * Copyright (c) 2003 Andi Kleen | 8 | * Copyright (c) 2003 Andi Kleen |
11 | * RTC support code taken from arch/i386/kernel/timers/time_hpet.c | 9 | * |
12 | */ | 10 | */ |
13 | 11 | ||
14 | #include <linux/clockchips.h> | 12 | #include <linux/clockchips.h> |
15 | #include <linux/init.h> | ||
16 | #include <linux/interrupt.h> | 13 | #include <linux/interrupt.h> |
17 | #include <linux/module.h> | ||
18 | #include <linux/time.h> | 14 | #include <linux/time.h> |
19 | #include <linux/mca.h> | 15 | #include <linux/mca.h> |
20 | #include <linux/nmi.h> | ||
21 | 16 | ||
17 | #include <asm/vsyscall.h> | ||
22 | #include <asm/x86_init.h> | 18 | #include <asm/x86_init.h> |
19 | #include <asm/i8259.h> | ||
23 | #include <asm/i8253.h> | 20 | #include <asm/i8253.h> |
21 | #include <asm/timer.h> | ||
24 | #include <asm/hpet.h> | 22 | #include <asm/hpet.h> |
25 | #include <asm/vgtod.h> | ||
26 | #include <asm/time.h> | 23 | #include <asm/time.h> |
27 | #include <asm/timer.h> | 24 | #include <asm/nmi.h> |
28 | 25 | ||
29 | volatile unsigned long __jiffies __section_jiffies = INITIAL_JIFFIES; | 26 | volatile unsigned long __jiffies __section_jiffies = INITIAL_JIFFIES; |
30 | 27 | ||