diff options
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index a38197b12d3e..9f329a8928ea 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -52,7 +52,6 @@ | |||
52 | #include <asm/pSeries_reconfig.h> | 52 | #include <asm/pSeries_reconfig.h> |
53 | #include <asm/pci-bridge.h> | 53 | #include <asm/pci-bridge.h> |
54 | #include <asm/kexec.h> | 54 | #include <asm/kexec.h> |
55 | #include <asm/system.h> | ||
56 | 55 | ||
57 | #ifdef DEBUG | 56 | #ifdef DEBUG |
58 | #define DBG(fmt...) printk(KERN_ERR fmt) | 57 | #define DBG(fmt...) printk(KERN_ERR fmt) |
@@ -431,9 +430,11 @@ static int __init early_parse_mem(char *p) | |||
431 | } | 430 | } |
432 | early_param("mem", early_parse_mem); | 431 | early_param("mem", early_parse_mem); |
433 | 432 | ||
434 | /* | 433 | /** |
435 | * The device tree may be allocated below our memory limit, or inside the | 434 | * move_device_tree - move tree to an unused area, if needed. |
436 | * crash kernel region for kdump. If so, move it out now. | 435 | * |
436 | * The device tree may be allocated beyond our memory limit, or inside the | ||
437 | * crash kernel region for kdump. If so, move it out of the way. | ||
437 | */ | 438 | */ |
438 | static void move_device_tree(void) | 439 | static void move_device_tree(void) |
439 | { | 440 | { |
@@ -530,10 +531,7 @@ static struct ibm_pa_feature { | |||
530 | {CPU_FTR_CTRL, 0, 0, 3, 0}, | 531 | {CPU_FTR_CTRL, 0, 0, 3, 0}, |
531 | {CPU_FTR_NOEXECUTE, 0, 0, 6, 0}, | 532 | {CPU_FTR_NOEXECUTE, 0, 0, 6, 0}, |
532 | {CPU_FTR_NODSISRALIGN, 0, 1, 1, 1}, | 533 | {CPU_FTR_NODSISRALIGN, 0, 1, 1, 1}, |
533 | #if 0 | ||
534 | /* put this back once we know how to test if firmware does 64k IO */ | ||
535 | {CPU_FTR_CI_LARGE_PAGE, 0, 1, 2, 0}, | 534 | {CPU_FTR_CI_LARGE_PAGE, 0, 1, 2, 0}, |
536 | #endif | ||
537 | {CPU_FTR_REAL_LE, PPC_FEATURE_TRUE_LE, 5, 0, 0}, | 535 | {CPU_FTR_REAL_LE, PPC_FEATURE_TRUE_LE, 5, 0, 0}, |
538 | }; | 536 | }; |
539 | 537 | ||
@@ -780,13 +778,13 @@ static int __init early_init_dt_scan_chosen(unsigned long node, | |||
780 | #endif | 778 | #endif |
781 | 779 | ||
782 | #ifdef CONFIG_KEXEC | 780 | #ifdef CONFIG_KEXEC |
783 | lprop = (u64*)of_get_flat_dt_prop(node, "linux,crashkernel-base", NULL); | 781 | lprop = (u64*)of_get_flat_dt_prop(node, "linux,crashkernel-base", NULL); |
784 | if (lprop) | 782 | if (lprop) |
785 | crashk_res.start = *lprop; | 783 | crashk_res.start = *lprop; |
786 | 784 | ||
787 | lprop = (u64*)of_get_flat_dt_prop(node, "linux,crashkernel-size", NULL); | 785 | lprop = (u64*)of_get_flat_dt_prop(node, "linux,crashkernel-size", NULL); |
788 | if (lprop) | 786 | if (lprop) |
789 | crashk_res.end = crashk_res.start + *lprop - 1; | 787 | crashk_res.end = crashk_res.start + *lprop - 1; |
790 | #endif | 788 | #endif |
791 | 789 | ||
792 | early_init_dt_check_for_initrd(node); | 790 | early_init_dt_check_for_initrd(node); |