Commit 2b04be7e authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'x86-fixes-for-linus' of...

Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  x86: fix asm/e820.h for userspace inclusion
  x86: fix numaq_tsc_disable
  x86: fix kernel_physical_mapping_init() for large x86 systems
parents bdec6cac 2567d71c
...@@ -96,7 +96,7 @@ int __init get_memcfg_numaq(void) ...@@ -96,7 +96,7 @@ int __init get_memcfg_numaq(void)
void __init numaq_tsc_disable(void) void __init numaq_tsc_disable(void)
{ {
if (!found_numaq) if (!found_numaq)
return -1; return;
if (num_online_nodes() > 1) { if (num_online_nodes() > 1) {
printk(KERN_DEBUG "NUMAQ: disabling TSC\n"); printk(KERN_DEBUG "NUMAQ: disabling TSC\n");
......
...@@ -644,7 +644,7 @@ static unsigned long __init kernel_physical_mapping_init(unsigned long start, ...@@ -644,7 +644,7 @@ static unsigned long __init kernel_physical_mapping_init(unsigned long start,
unsigned long pud_phys; unsigned long pud_phys;
pud_t *pud; pud_t *pud;
next = start + PGDIR_SIZE; next = (start + PGDIR_SIZE) & PGDIR_MASK;
if (next > end) if (next > end)
next = end; next = end;
......
...@@ -59,6 +59,7 @@ struct e820map { ...@@ -59,6 +59,7 @@ struct e820map {
struct e820entry map[E820_X_MAX]; struct e820entry map[E820_X_MAX];
}; };
#ifdef __KERNEL__
/* see comment in arch/x86/kernel/e820.c */ /* see comment in arch/x86/kernel/e820.c */
extern struct e820map e820; extern struct e820map e820;
extern struct e820map e820_saved; extern struct e820map e820_saved;
...@@ -115,7 +116,7 @@ extern void setup_memory_map(void); ...@@ -115,7 +116,7 @@ extern void setup_memory_map(void);
extern char *default_machine_specific_memory_setup(void); extern char *default_machine_specific_memory_setup(void);
extern char *machine_specific_memory_setup(void); extern char *machine_specific_memory_setup(void);
extern char *memory_setup(void); extern char *memory_setup(void);
#endif /* __KERNEL__ */
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#define ISA_START_ADDRESS 0xa0000 #define ISA_START_ADDRESS 0xa0000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment