diff options
-rw-r--r-- | arch/x86/kernel/hpet.c | 2 | ||||
-rw-r--r-- | arch/x86/mm/init_32.c | 9 | ||||
-rw-r--r-- | include/asm-x86/msr.h | 4 |
3 files changed, 12 insertions, 3 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index 4a86ffd67ec5..2f99ee206b95 100644 --- a/arch/x86/kernel/hpet.c +++ b/arch/x86/kernel/hpet.c | |||
@@ -657,7 +657,7 @@ irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id) | |||
657 | hpet_pie_count = 0; | 657 | hpet_pie_count = 0; |
658 | } | 658 | } |
659 | 659 | ||
660 | if (hpet_rtc_flags & RTC_PIE && | 660 | if (hpet_rtc_flags & RTC_AIE && |
661 | (curr_time.tm_sec == hpet_alarm_time.tm_sec) && | 661 | (curr_time.tm_sec == hpet_alarm_time.tm_sec) && |
662 | (curr_time.tm_min == hpet_alarm_time.tm_min) && | 662 | (curr_time.tm_min == hpet_alarm_time.tm_min) && |
663 | (curr_time.tm_hour == hpet_alarm_time.tm_hour)) | 663 | (curr_time.tm_hour == hpet_alarm_time.tm_hour)) |
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index c7d19471261d..3c76d194fd2c 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -321,8 +321,13 @@ extern void set_highmem_pages_init(int); | |||
321 | static void __init set_highmem_pages_init(int bad_ppro) | 321 | static void __init set_highmem_pages_init(int bad_ppro) |
322 | { | 322 | { |
323 | int pfn; | 323 | int pfn; |
324 | for (pfn = highstart_pfn; pfn < highend_pfn; pfn++) | 324 | for (pfn = highstart_pfn; pfn < highend_pfn; pfn++) { |
325 | add_one_highpage_init(pfn_to_page(pfn), pfn, bad_ppro); | 325 | /* |
326 | * Holes under sparsemem might not have no mem_map[]: | ||
327 | */ | ||
328 | if (pfn_valid(pfn)) | ||
329 | add_one_highpage_init(pfn_to_page(pfn), pfn, bad_ppro); | ||
330 | } | ||
326 | totalram_pages += totalhigh_pages; | 331 | totalram_pages += totalhigh_pages; |
327 | } | 332 | } |
328 | #endif /* CONFIG_FLATMEM */ | 333 | #endif /* CONFIG_FLATMEM */ |
diff --git a/include/asm-x86/msr.h b/include/asm-x86/msr.h index 664a2fa7adc9..80b027081b3c 100644 --- a/include/asm-x86/msr.h +++ b/include/asm-x86/msr.h | |||
@@ -3,6 +3,10 @@ | |||
3 | 3 | ||
4 | #include <asm/msr-index.h> | 4 | #include <asm/msr-index.h> |
5 | 5 | ||
6 | #ifndef __ASSEMBLY__ | ||
7 | # include <linux/types.h> | ||
8 | #endif | ||
9 | |||
6 | #ifdef __i386__ | 10 | #ifdef __i386__ |
7 | 11 | ||
8 | #ifdef __KERNEL__ | 12 | #ifdef __KERNEL__ |