aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorTej <bewith.tej@gmail.com>2008-12-16 14:56:06 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-16 15:05:01 -0500
commitf63c2f248959366cd11bfa476f866737047cf663 (patch)
tree7bd3d723d904f13a37e2befefd817e05588a9b23 /arch/x86/xen/enlighten.c
parent1bda71282ded6a2e09a2db7c8884542fb46bfd4f (diff)
xen: whitespace/checkpatch cleanup
Impact: cleanup Signed-off-by: Tej <bewith.tej@gmail.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 5e4686d70f62..86cd2f829683 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -793,7 +793,7 @@ static int xen_write_msr_safe(unsigned int msr, unsigned low, unsigned high)
793 793
794 ret = 0; 794 ret = 0;
795 795
796 switch(msr) { 796 switch (msr) {
797#ifdef CONFIG_X86_64 797#ifdef CONFIG_X86_64
798 unsigned which; 798 unsigned which;
799 u64 base; 799 u64 base;
@@ -1453,7 +1453,7 @@ static __init void xen_map_identity_early(pmd_t *pmd, unsigned long max_pfn)
1453 1453
1454 ident_pte = 0; 1454 ident_pte = 0;
1455 pfn = 0; 1455 pfn = 0;
1456 for(pmdidx = 0; pmdidx < PTRS_PER_PMD && pfn < max_pfn; pmdidx++) { 1456 for (pmdidx = 0; pmdidx < PTRS_PER_PMD && pfn < max_pfn; pmdidx++) {
1457 pte_t *pte_page; 1457 pte_t *pte_page;
1458 1458
1459 /* Reuse or allocate a page of ptes */ 1459 /* Reuse or allocate a page of ptes */
@@ -1471,7 +1471,7 @@ static __init void xen_map_identity_early(pmd_t *pmd, unsigned long max_pfn)
1471 } 1471 }
1472 1472
1473 /* Install mappings */ 1473 /* Install mappings */
1474 for(pteidx = 0; pteidx < PTRS_PER_PTE; pteidx++, pfn++) { 1474 for (pteidx = 0; pteidx < PTRS_PER_PTE; pteidx++, pfn++) {
1475 pte_t pte; 1475 pte_t pte;
1476 1476
1477 if (pfn > max_pfn_mapped) 1477 if (pfn > max_pfn_mapped)
@@ -1485,7 +1485,7 @@ static __init void xen_map_identity_early(pmd_t *pmd, unsigned long max_pfn)
1485 } 1485 }
1486 } 1486 }
1487 1487
1488 for(pteidx = 0; pteidx < ident_pte; pteidx += PTRS_PER_PTE) 1488 for (pteidx = 0; pteidx < ident_pte; pteidx += PTRS_PER_PTE)
1489 set_page_prot(&level1_ident_pgt[pteidx], PAGE_KERNEL_RO); 1489 set_page_prot(&level1_ident_pgt[pteidx], PAGE_KERNEL_RO);
1490 1490
1491 set_page_prot(pmd, PAGE_KERNEL_RO); 1491 set_page_prot(pmd, PAGE_KERNEL_RO);
@@ -1499,7 +1499,7 @@ static void convert_pfn_mfn(void *v)
1499 1499
1500 /* All levels are converted the same way, so just treat them 1500 /* All levels are converted the same way, so just treat them
1501 as ptes. */ 1501 as ptes. */
1502 for(i = 0; i < PTRS_PER_PTE; i++) 1502 for (i = 0; i < PTRS_PER_PTE; i++)
1503 pte[i] = xen_make_pte(pte[i].pte); 1503 pte[i] = xen_make_pte(pte[i].pte);
1504} 1504}
1505 1505
@@ -1514,7 +1514,8 @@ static void convert_pfn_mfn(void *v)
1514 * of the physical mapping once some sort of allocator has been set 1514 * of the physical mapping once some sort of allocator has been set
1515 * up. 1515 * up.
1516 */ 1516 */
1517static __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn) 1517static __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,
1518 unsigned long max_pfn)
1518{ 1519{
1519 pud_t *l3; 1520 pud_t *l3;
1520 pmd_t *l2; 1521 pmd_t *l2;
@@ -1577,7 +1578,8 @@ static __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pf
1577#else /* !CONFIG_X86_64 */ 1578#else /* !CONFIG_X86_64 */
1578static pmd_t level2_kernel_pgt[PTRS_PER_PMD] __page_aligned_bss; 1579static pmd_t level2_kernel_pgt[PTRS_PER_PMD] __page_aligned_bss;
1579 1580
1580static __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn) 1581static __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,
1582 unsigned long max_pfn)
1581{ 1583{
1582 pmd_t *kernel_pmd; 1584 pmd_t *kernel_pmd;
1583 1585