diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-26 22:41:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-26 22:41:28 -0500 |
commit | ff1ea52fa317a5658b6415b25169c5e531f54876 (patch) | |
tree | 88fd243ddb02de7e3b2b0f55aba91796785b5a63 /include | |
parent | b5faa4b89e4d83203b1f44f143a351b518f7cda2 (diff) | |
parent | f44d9efd3510776216938fef84adc99cc0e12412 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86
* git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86:
x86: fix APIC related bootup crash on Athlon XP CPUs
time: add ADJ_OFFSET_SS_READ
x86: export the symbol empty_zero_page on the 32-bit x86 architecture
x86: fix kprobes_64.c inlining borkage
pci: use pci=bfsort for HP DL385 G2, DL585 G2
x86: correctly set UTS_MACHINE for "make ARCH=x86"
lockdep: annotate do_debug() trap handler
x86: turn off iommu merge by default
x86: fix ACPI compile for LOCAL_APIC=n
x86: printk kernel version in WARN_ON and other dump_stack users
ACPI: Set max_cstate to 1 for early Opterons.
x86: fix NMI watchdog & 'stopped time' problem
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-ia64/acpi.h | 1 | ||||
-rw-r--r-- | include/asm-x86/acpi.h | 27 | ||||
-rw-r--r-- | include/asm-x86/apic_32.h | 1 | ||||
-rw-r--r-- | include/linux/timex.h | 1 |
4 files changed, 30 insertions, 0 deletions
diff --git a/include/asm-ia64/acpi.h b/include/asm-ia64/acpi.h index 49730ffbbae4..81bcd5e51789 100644 --- a/include/asm-ia64/acpi.h +++ b/include/asm-ia64/acpi.h | |||
@@ -94,6 +94,7 @@ ia64_acpi_release_global_lock (unsigned int *lock) | |||
94 | #define acpi_noirq 0 /* ACPI always enabled on IA64 */ | 94 | #define acpi_noirq 0 /* ACPI always enabled on IA64 */ |
95 | #define acpi_pci_disabled 0 /* ACPI PCI always enabled on IA64 */ | 95 | #define acpi_pci_disabled 0 /* ACPI PCI always enabled on IA64 */ |
96 | #define acpi_strict 1 /* no ACPI spec workarounds on IA64 */ | 96 | #define acpi_strict 1 /* no ACPI spec workarounds on IA64 */ |
97 | #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */ | ||
97 | static inline void disable_acpi(void) { } | 98 | static inline void disable_acpi(void) { } |
98 | 99 | ||
99 | const char *acpi_get_sysname (void); | 100 | const char *acpi_get_sysname (void); |
diff --git a/include/asm-x86/acpi.h b/include/asm-x86/acpi.h index 0693689d4146..f8a89793ac8c 100644 --- a/include/asm-x86/acpi.h +++ b/include/asm-x86/acpi.h | |||
@@ -1,5 +1,32 @@ | |||
1 | #ifndef _ASM_X86_ACPI_H | ||
2 | #define _ASM_X86_ACPI_H | ||
3 | |||
1 | #ifdef CONFIG_X86_32 | 4 | #ifdef CONFIG_X86_32 |
2 | # include "acpi_32.h" | 5 | # include "acpi_32.h" |
3 | #else | 6 | #else |
4 | # include "acpi_64.h" | 7 | # include "acpi_64.h" |
5 | #endif | 8 | #endif |
9 | |||
10 | #include <asm/processor.h> | ||
11 | |||
12 | /* | ||
13 | * Check if the CPU can handle C2 and deeper | ||
14 | */ | ||
15 | static inline unsigned int acpi_processor_cstate_check(unsigned int max_cstate) | ||
16 | { | ||
17 | /* | ||
18 | * Early models (<=5) of AMD Opterons are not supposed to go into | ||
19 | * C2 state. | ||
20 | * | ||
21 | * Steppings 0x0A and later are good | ||
22 | */ | ||
23 | if (boot_cpu_data.x86 == 0x0F && | ||
24 | boot_cpu_data.x86_vendor == X86_VENDOR_AMD && | ||
25 | boot_cpu_data.x86_model <= 0x05 && | ||
26 | boot_cpu_data.x86_mask < 0x0A) | ||
27 | return 1; | ||
28 | else | ||
29 | return max_cstate; | ||
30 | } | ||
31 | |||
32 | #endif | ||
diff --git a/include/asm-x86/apic_32.h b/include/asm-x86/apic_32.h index 4091b33dcb10..be158b27d54b 100644 --- a/include/asm-x86/apic_32.h +++ b/include/asm-x86/apic_32.h | |||
@@ -120,6 +120,7 @@ extern int local_apic_timer_disabled; | |||
120 | 120 | ||
121 | #else /* !CONFIG_X86_LOCAL_APIC */ | 121 | #else /* !CONFIG_X86_LOCAL_APIC */ |
122 | static inline void lapic_shutdown(void) { } | 122 | static inline void lapic_shutdown(void) { } |
123 | #define local_apic_timer_c2_ok 1 | ||
123 | 124 | ||
124 | #endif /* !CONFIG_X86_LOCAL_APIC */ | 125 | #endif /* !CONFIG_X86_LOCAL_APIC */ |
125 | 126 | ||
diff --git a/include/linux/timex.h b/include/linux/timex.h index 37ac3ff90faf..24c6a2b59511 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
@@ -137,6 +137,7 @@ struct timex { | |||
137 | #define ADJ_TIMECONST 0x0020 /* pll time constant */ | 137 | #define ADJ_TIMECONST 0x0020 /* pll time constant */ |
138 | #define ADJ_TICK 0x4000 /* tick value */ | 138 | #define ADJ_TICK 0x4000 /* tick value */ |
139 | #define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */ | 139 | #define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */ |
140 | #define ADJ_OFFSET_SS_READ 0xa001 /* read-only adjtime */ | ||
140 | 141 | ||
141 | /* xntp 3.4 compatibility names */ | 142 | /* xntp 3.4 compatibility names */ |
142 | #define MOD_OFFSET ADJ_OFFSET | 143 | #define MOD_OFFSET ADJ_OFFSET |