diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2011-01-12 00:37:42 -0500 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-12 00:37:42 -0500 |
| commit | 83eb95b852902f952ba594447a796ad8146b9462 (patch) | |
| tree | 33c199aeeae58b69ad8d6d2a33c2d96ba2b98ddf /arch/x86/include | |
| parent | efb3e34b6176d30c4fe8635fa8e1beb6280cc2cd (diff) | |
| parent | 9bbe7b984096ac45586da2adf26c14069ecb79b2 (diff) | |
Merge branch 'sh/sdio' into sh-latest
Diffstat (limited to 'arch/x86/include')
| -rw-r--r-- | arch/x86/include/asm/acpi.h | 11 | ||||
| -rw-r--r-- | arch/x86/include/asm/amd_nb.h | 13 | ||||
| -rw-r--r-- | arch/x86/include/asm/fixmap.h | 4 | ||||
| -rw-r--r-- | arch/x86/include/asm/gpio.h | 5 | ||||
| -rw-r--r-- | arch/x86/include/asm/kdebug.h | 1 | ||||
| -rw-r--r-- | arch/x86/include/asm/mach_traps.h | 12 | ||||
| -rw-r--r-- | arch/x86/include/asm/nmi.h | 20 | ||||
| -rw-r--r-- | arch/x86/include/asm/numa_64.h | 2 | ||||
| -rw-r--r-- | arch/x86/include/asm/perf_event_p4.h | 3 |
9 files changed, 55 insertions, 16 deletions
diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h index 55d106b5e31b..211ca3f7fd16 100644 --- a/arch/x86/include/asm/acpi.h +++ b/arch/x86/include/asm/acpi.h | |||
| @@ -185,17 +185,16 @@ struct bootnode; | |||
| 185 | 185 | ||
| 186 | #ifdef CONFIG_ACPI_NUMA | 186 | #ifdef CONFIG_ACPI_NUMA |
| 187 | extern int acpi_numa; | 187 | extern int acpi_numa; |
| 188 | extern int acpi_get_nodes(struct bootnode *physnodes); | 188 | extern void acpi_get_nodes(struct bootnode *physnodes, unsigned long start, |
| 189 | unsigned long end); | ||
| 189 | extern int acpi_scan_nodes(unsigned long start, unsigned long end); | 190 | extern int acpi_scan_nodes(unsigned long start, unsigned long end); |
| 190 | #define NR_NODE_MEMBLKS (MAX_NUMNODES*2) | 191 | #define NR_NODE_MEMBLKS (MAX_NUMNODES*2) |
| 192 | |||
| 193 | #ifdef CONFIG_NUMA_EMU | ||
| 191 | extern void acpi_fake_nodes(const struct bootnode *fake_nodes, | 194 | extern void acpi_fake_nodes(const struct bootnode *fake_nodes, |
| 192 | int num_nodes); | 195 | int num_nodes); |
| 193 | #else | ||
| 194 | static inline void acpi_fake_nodes(const struct bootnode *fake_nodes, | ||
| 195 | int num_nodes) | ||
| 196 | { | ||
| 197 | } | ||
| 198 | #endif | 196 | #endif |
| 197 | #endif /* CONFIG_ACPI_NUMA */ | ||
| 199 | 198 | ||
| 200 | #define acpi_unlazy_tlb(x) leave_mm(x) | 199 | #define acpi_unlazy_tlb(x) leave_mm(x) |
| 201 | 200 | ||
diff --git a/arch/x86/include/asm/amd_nb.h b/arch/x86/include/asm/amd_nb.h index 6aee50d655d1..64dc82ee19f0 100644 --- a/arch/x86/include/asm/amd_nb.h +++ b/arch/x86/include/asm/amd_nb.h | |||
| @@ -3,16 +3,27 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/pci.h> | 4 | #include <linux/pci.h> |
| 5 | 5 | ||
| 6 | struct amd_nb_bus_dev_range { | ||
| 7 | u8 bus; | ||
| 8 | u8 dev_base; | ||
| 9 | u8 dev_limit; | ||
| 10 | }; | ||
| 11 | |||
| 6 | extern struct pci_device_id amd_nb_misc_ids[]; | 12 | extern struct pci_device_id amd_nb_misc_ids[]; |
| 13 | extern const struct amd_nb_bus_dev_range amd_nb_bus_dev_ranges[]; | ||
| 7 | struct bootnode; | 14 | struct bootnode; |
| 8 | 15 | ||
| 9 | extern int early_is_amd_nb(u32 value); | 16 | extern int early_is_amd_nb(u32 value); |
| 10 | extern int amd_cache_northbridges(void); | 17 | extern int amd_cache_northbridges(void); |
| 11 | extern void amd_flush_garts(void); | 18 | extern void amd_flush_garts(void); |
| 12 | extern int amd_get_nodes(struct bootnode *nodes); | ||
| 13 | extern int amd_numa_init(unsigned long start_pfn, unsigned long end_pfn); | 19 | extern int amd_numa_init(unsigned long start_pfn, unsigned long end_pfn); |
| 14 | extern int amd_scan_nodes(void); | 20 | extern int amd_scan_nodes(void); |
| 15 | 21 | ||
| 22 | #ifdef CONFIG_NUMA_EMU | ||
| 23 | extern void amd_fake_nodes(const struct bootnode *nodes, int nr_nodes); | ||
| 24 | extern void amd_get_nodes(struct bootnode *nodes); | ||
| 25 | #endif | ||
| 26 | |||
| 16 | struct amd_northbridge { | 27 | struct amd_northbridge { |
| 17 | struct pci_dev *misc; | 28 | struct pci_dev *misc; |
| 18 | }; | 29 | }; |
diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h index 0141b234406f..4729b2b63117 100644 --- a/arch/x86/include/asm/fixmap.h +++ b/arch/x86/include/asm/fixmap.h | |||
| @@ -116,11 +116,11 @@ enum fixed_addresses { | |||
| 116 | #endif | 116 | #endif |
| 117 | FIX_TEXT_POKE1, /* reserve 2 pages for text_poke() */ | 117 | FIX_TEXT_POKE1, /* reserve 2 pages for text_poke() */ |
| 118 | FIX_TEXT_POKE0, /* first page is last, because allocation is backward */ | 118 | FIX_TEXT_POKE0, /* first page is last, because allocation is backward */ |
| 119 | __end_of_permanent_fixed_addresses, | ||
| 120 | |||
| 121 | #ifdef CONFIG_X86_MRST | 119 | #ifdef CONFIG_X86_MRST |
| 122 | FIX_LNW_VRTC, | 120 | FIX_LNW_VRTC, |
| 123 | #endif | 121 | #endif |
| 122 | __end_of_permanent_fixed_addresses, | ||
| 123 | |||
| 124 | /* | 124 | /* |
| 125 | * 256 temporary boot-time mappings, used by early_ioremap(), | 125 | * 256 temporary boot-time mappings, used by early_ioremap(), |
| 126 | * before ioremap() is functional. | 126 | * before ioremap() is functional. |
diff --git a/arch/x86/include/asm/gpio.h b/arch/x86/include/asm/gpio.h index 49dbfdfa50f9..91d915a65259 100644 --- a/arch/x86/include/asm/gpio.h +++ b/arch/x86/include/asm/gpio.h | |||
| @@ -38,12 +38,9 @@ static inline int gpio_cansleep(unsigned int gpio) | |||
| 38 | return __gpio_cansleep(gpio); | 38 | return __gpio_cansleep(gpio); |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | /* | ||
| 42 | * Not implemented, yet. | ||
| 43 | */ | ||
| 44 | static inline int gpio_to_irq(unsigned int gpio) | 41 | static inline int gpio_to_irq(unsigned int gpio) |
| 45 | { | 42 | { |
| 46 | return -ENOSYS; | 43 | return __gpio_to_irq(gpio); |
| 47 | } | 44 | } |
| 48 | 45 | ||
| 49 | static inline int irq_to_gpio(unsigned int irq) | 46 | static inline int irq_to_gpio(unsigned int irq) |
diff --git a/arch/x86/include/asm/kdebug.h b/arch/x86/include/asm/kdebug.h index f23eb2528464..ca242d35e873 100644 --- a/arch/x86/include/asm/kdebug.h +++ b/arch/x86/include/asm/kdebug.h | |||
| @@ -18,7 +18,6 @@ enum die_val { | |||
| 18 | DIE_TRAP, | 18 | DIE_TRAP, |
| 19 | DIE_GPF, | 19 | DIE_GPF, |
| 20 | DIE_CALL, | 20 | DIE_CALL, |
| 21 | DIE_NMI_IPI, | ||
| 22 | DIE_PAGE_FAULT, | 21 | DIE_PAGE_FAULT, |
| 23 | DIE_NMIUNKNOWN, | 22 | DIE_NMIUNKNOWN, |
| 24 | }; | 23 | }; |
diff --git a/arch/x86/include/asm/mach_traps.h b/arch/x86/include/asm/mach_traps.h index f7920601e472..72a8b52e7dfd 100644 --- a/arch/x86/include/asm/mach_traps.h +++ b/arch/x86/include/asm/mach_traps.h | |||
| @@ -7,9 +7,19 @@ | |||
| 7 | 7 | ||
| 8 | #include <asm/mc146818rtc.h> | 8 | #include <asm/mc146818rtc.h> |
| 9 | 9 | ||
| 10 | #define NMI_REASON_PORT 0x61 | ||
| 11 | |||
| 12 | #define NMI_REASON_SERR 0x80 | ||
| 13 | #define NMI_REASON_IOCHK 0x40 | ||
| 14 | #define NMI_REASON_MASK (NMI_REASON_SERR | NMI_REASON_IOCHK) | ||
| 15 | |||
| 16 | #define NMI_REASON_CLEAR_SERR 0x04 | ||
| 17 | #define NMI_REASON_CLEAR_IOCHK 0x08 | ||
| 18 | #define NMI_REASON_CLEAR_MASK 0x0f | ||
| 19 | |||
| 10 | static inline unsigned char get_nmi_reason(void) | 20 | static inline unsigned char get_nmi_reason(void) |
| 11 | { | 21 | { |
| 12 | return inb(0x61); | 22 | return inb(NMI_REASON_PORT); |
| 13 | } | 23 | } |
| 14 | 24 | ||
| 15 | static inline void reassert_nmi(void) | 25 | static inline void reassert_nmi(void) |
diff --git a/arch/x86/include/asm/nmi.h b/arch/x86/include/asm/nmi.h index c4021b953510..c76f5b92b840 100644 --- a/arch/x86/include/asm/nmi.h +++ b/arch/x86/include/asm/nmi.h | |||
| @@ -23,6 +23,26 @@ void arch_trigger_all_cpu_backtrace(void); | |||
| 23 | #define arch_trigger_all_cpu_backtrace arch_trigger_all_cpu_backtrace | 23 | #define arch_trigger_all_cpu_backtrace arch_trigger_all_cpu_backtrace |
| 24 | #endif | 24 | #endif |
| 25 | 25 | ||
| 26 | /* | ||
| 27 | * Define some priorities for the nmi notifier call chain. | ||
| 28 | * | ||
| 29 | * Create a local nmi bit that has a higher priority than | ||
| 30 | * external nmis, because the local ones are more frequent. | ||
| 31 | * | ||
| 32 | * Also setup some default high/normal/low settings for | ||
| 33 | * subsystems to registers with. Using 4 bits to seperate | ||
| 34 | * the priorities. This can go alot higher if needed be. | ||
| 35 | */ | ||
| 36 | |||
| 37 | #define NMI_LOCAL_SHIFT 16 /* randomly picked */ | ||
| 38 | #define NMI_LOCAL_BIT (1ULL << NMI_LOCAL_SHIFT) | ||
| 39 | #define NMI_HIGH_PRIOR (1ULL << 8) | ||
| 40 | #define NMI_NORMAL_PRIOR (1ULL << 4) | ||
| 41 | #define NMI_LOW_PRIOR (1ULL << 0) | ||
| 42 | #define NMI_LOCAL_HIGH_PRIOR (NMI_LOCAL_BIT | NMI_HIGH_PRIOR) | ||
| 43 | #define NMI_LOCAL_NORMAL_PRIOR (NMI_LOCAL_BIT | NMI_NORMAL_PRIOR) | ||
| 44 | #define NMI_LOCAL_LOW_PRIOR (NMI_LOCAL_BIT | NMI_LOW_PRIOR) | ||
| 45 | |||
| 26 | void stop_nmi(void); | 46 | void stop_nmi(void); |
| 27 | void restart_nmi(void); | 47 | void restart_nmi(void); |
| 28 | 48 | ||
diff --git a/arch/x86/include/asm/numa_64.h b/arch/x86/include/asm/numa_64.h index 823e070e7c26..5ae87285a502 100644 --- a/arch/x86/include/asm/numa_64.h +++ b/arch/x86/include/asm/numa_64.h | |||
| @@ -38,7 +38,7 @@ extern void __cpuinit numa_add_cpu(int cpu); | |||
| 38 | extern void __cpuinit numa_remove_cpu(int cpu); | 38 | extern void __cpuinit numa_remove_cpu(int cpu); |
| 39 | 39 | ||
| 40 | #ifdef CONFIG_NUMA_EMU | 40 | #ifdef CONFIG_NUMA_EMU |
| 41 | #define FAKE_NODE_MIN_SIZE ((u64)64 << 20) | 41 | #define FAKE_NODE_MIN_SIZE ((u64)32 << 20) |
| 42 | #define FAKE_NODE_MIN_HASH_MASK (~(FAKE_NODE_MIN_SIZE - 1UL)) | 42 | #define FAKE_NODE_MIN_HASH_MASK (~(FAKE_NODE_MIN_SIZE - 1UL)) |
| 43 | #endif /* CONFIG_NUMA_EMU */ | 43 | #endif /* CONFIG_NUMA_EMU */ |
| 44 | #else | 44 | #else |
diff --git a/arch/x86/include/asm/perf_event_p4.h b/arch/x86/include/asm/perf_event_p4.h index 295e2ff18a6a..e2f6a99f14ab 100644 --- a/arch/x86/include/asm/perf_event_p4.h +++ b/arch/x86/include/asm/perf_event_p4.h | |||
| @@ -20,6 +20,9 @@ | |||
| 20 | #define ARCH_P4_MAX_ESCR (ARCH_P4_TOTAL_ESCR - ARCH_P4_RESERVED_ESCR) | 20 | #define ARCH_P4_MAX_ESCR (ARCH_P4_TOTAL_ESCR - ARCH_P4_RESERVED_ESCR) |
| 21 | #define ARCH_P4_MAX_CCCR (18) | 21 | #define ARCH_P4_MAX_CCCR (18) |
| 22 | 22 | ||
| 23 | #define ARCH_P4_CNTRVAL_BITS (40) | ||
| 24 | #define ARCH_P4_CNTRVAL_MASK ((1ULL << ARCH_P4_CNTRVAL_BITS) - 1) | ||
| 25 | |||
| 23 | #define P4_ESCR_EVENT_MASK 0x7e000000U | 26 | #define P4_ESCR_EVENT_MASK 0x7e000000U |
| 24 | #define P4_ESCR_EVENT_SHIFT 25 | 27 | #define P4_ESCR_EVENT_SHIFT 25 |
| 25 | #define P4_ESCR_EVENTMASK_MASK 0x01fffe00U | 28 | #define P4_ESCR_EVENTMASK_MASK 0x01fffe00U |
