aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/machine_kexec_64.c
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2009-03-09 22:56:57 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-03-10 21:13:25 -0400
commitfef3a7a17418814733ebde0b40d8e32747677c8f (patch)
treee40b048dce15fd0673f7ab579812b055845d4016 /arch/x86/kernel/machine_kexec_64.c
parent467c88fee51e2ae862e9485245687da0730e29aa (diff)
x86, kexec: fix kexec x86 coding style
Impact: Cleanup Fix some coding style issue for kexec x86. Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/machine_kexec_64.c')
-rw-r--r--arch/x86/kernel/machine_kexec_64.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c
index 6993d51b7fd8..f8c796fffa0f 100644
--- a/arch/x86/kernel/machine_kexec_64.c
+++ b/arch/x86/kernel/machine_kexec_64.c
@@ -12,11 +12,11 @@
12#include <linux/reboot.h> 12#include <linux/reboot.h>
13#include <linux/numa.h> 13#include <linux/numa.h>
14#include <linux/ftrace.h> 14#include <linux/ftrace.h>
15#include <linux/io.h>
15 16
16#include <asm/pgtable.h> 17#include <asm/pgtable.h>
17#include <asm/tlbflush.h> 18#include <asm/tlbflush.h>
18#include <asm/mmu_context.h> 19#include <asm/mmu_context.h>
19#include <asm/io.h>
20 20
21static void init_level2_page(pmd_t *level2p, unsigned long addr) 21static void init_level2_page(pmd_t *level2p, unsigned long addr)
22{ 22{
@@ -83,9 +83,8 @@ static int init_level4_page(struct kimage *image, pgd_t *level4p,
83 } 83 }
84 level3p = (pud_t *)page_address(page); 84 level3p = (pud_t *)page_address(page);
85 result = init_level3_page(image, level3p, addr, last_addr); 85 result = init_level3_page(image, level3p, addr, last_addr);
86 if (result) { 86 if (result)
87 goto out; 87 goto out;
88 }
89 set_pgd(level4p++, __pgd(__pa(level3p) | _KERNPG_TABLE)); 88 set_pgd(level4p++, __pgd(__pa(level3p) | _KERNPG_TABLE));
90 addr += PGDIR_SIZE; 89 addr += PGDIR_SIZE;
91 } 90 }
@@ -242,7 +241,8 @@ void machine_kexec(struct kimage *image)
242 page_list[PA_TABLE_PAGE] = 241 page_list[PA_TABLE_PAGE] =
243 (unsigned long)__pa(page_address(image->control_code_page)); 242 (unsigned long)__pa(page_address(image->control_code_page));
244 243
245 /* The segment registers are funny things, they have both a 244 /*
245 * The segment registers are funny things, they have both a
246 * visible and an invisible part. Whenever the visible part is 246 * visible and an invisible part. Whenever the visible part is
247 * set to a specific selector, the invisible part is loaded 247 * set to a specific selector, the invisible part is loaded
248 * with from a table in memory. At no other time is the 248 * with from a table in memory. At no other time is the
@@ -252,11 +252,12 @@ void machine_kexec(struct kimage *image)
252 * segments, before I zap the gdt with an invalid value. 252 * segments, before I zap the gdt with an invalid value.
253 */ 253 */
254 load_segments(); 254 load_segments();
255 /* The gdt & idt are now invalid. 255 /*
256 * The gdt & idt are now invalid.
256 * If you want to load them you must set up your own idt & gdt. 257 * If you want to load them you must set up your own idt & gdt.
257 */ 258 */
258 set_gdt(phys_to_virt(0),0); 259 set_gdt(phys_to_virt(0), 0);
259 set_idt(phys_to_virt(0),0); 260 set_idt(phys_to_virt(0), 0);
260 261
261 /* now call it */ 262 /* now call it */
262 relocate_kernel((unsigned long)image->head, (unsigned long)page_list, 263 relocate_kernel((unsigned long)image->head, (unsigned long)page_list,