aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-23 18:17:37 -0400
committerMike Frysinger <vapier@gentoo.org>2010-05-21 09:03:16 -0400
commitd012ce22a492a38977ba727b02bcd216ed571710 (patch)
tree6960132f6d4f4c138a5266cc3c29ca78b368995f /arch/blackfin
parentf074e48e0a54d8c1370f319ef95e71f796cd8048 (diff)
Blackfin: cleanup style/comments/etc... in paging_init()
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mm/init.c31
1 files changed, 13 insertions, 18 deletions
diff --git a/arch/blackfin/mm/init.c b/arch/blackfin/mm/init.c
index 10c8a59a96c5..bb4e8fff4b55 100644
--- a/arch/blackfin/mm/init.c
+++ b/arch/blackfin/mm/init.c
@@ -40,31 +40,26 @@ EXPORT_SYMBOL(cpu_pda);
40void __init paging_init(void) 40void __init paging_init(void)
41{ 41{
42 /* 42 /*
43 * make sure start_mem is page aligned, otherwise bootmem and 43 * make sure start_mem is page aligned, otherwise bootmem and
44 * page_alloc get different views og the world 44 * page_alloc get different views of the world
45 */ 45 */
46 unsigned long end_mem = memory_end & PAGE_MASK; 46 unsigned long end_mem = memory_end & PAGE_MASK;
47 47
48 pr_debug("start_mem is %#lx virtual_end is %#lx\n", PAGE_ALIGN(memory_start), end_mem); 48 unsigned long zones_size[MAX_NR_ZONES] = {
49 [0] = 0,
50 [ZONE_DMA] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT,
51 [ZONE_NORMAL] = 0,
52#ifdef CONFIG_HIGHMEM
53 [ZONE_HIGHMEM] = 0,
54#endif
55 };
49 56
50 /* 57 /* Set up SFC/DFC registers (user data space) */
51 * Set up SFC/DFC registers (user data space)
52 */
53 set_fs(KERNEL_DS); 58 set_fs(KERNEL_DS);
54 59
55 pr_debug("free_area_init -> start_mem is %#lx virtual_end is %#lx\n", 60 pr_debug("free_area_init -> start_mem is %#lx virtual_end is %#lx\n",
56 PAGE_ALIGN(memory_start), end_mem); 61 PAGE_ALIGN(memory_start), end_mem);
57 62 free_area_init(zones_size);
58 {
59 unsigned long zones_size[MAX_NR_ZONES] = { 0, };
60
61 zones_size[ZONE_DMA] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
62 zones_size[ZONE_NORMAL] = 0;
63#ifdef CONFIG_HIGHMEM
64 zones_size[ZONE_HIGHMEM] = 0;
65#endif
66 free_area_init(zones_size);
67 }
68} 63}
69 64
70asmlinkage void __init init_pda(void) 65asmlinkage void __init init_pda(void)