alistair23-linux/arch/mips
Franck Bui-Huu b6f1f0dea1 [MIPS] setup.c: cleanup bootmem_init()
This function although doing simple thing is hard to follow. It's
mainly due to:

    - a lot of #ifdef
    - bad local names
    - redundant tests

So this patch try to address these issues. It also do not use
max_pfn global which is marked as an unused exported symbol.

As a bonus side, it's now really easy to see what part of the
code is for no-numa system.

There's also no point to make this function inline.

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2006-09-27 13:37:59 +01:00
..
arc Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
au1000 [MIPS] db1x00: Remove unused mirage_ts.c 2006-09-27 13:37:05 +01:00
basler/excite [MIPS] Move excite_fpga.h to include/asm-mips/mach-excite 2006-09-27 13:37:50 +01:00
boot
cobalt [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
configs [MIPS] Enable tmpfs for anything that possibly runs a full distribution. 2006-09-27 13:37:57 +01:00
ddb5xxx [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
dec [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
emma2rh [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
gt64120 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
ite-boards [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
jazz [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
jmr3927 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
kernel [MIPS] setup.c: cleanup bootmem_init() 2006-09-27 13:37:59 +01:00
lasat [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
lib Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
lib-32 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
lib-64 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
math-emu Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mips-boards [MIPS] Atlas: update interrupt handling 2006-09-27 13:37:42 +01:00
mm [MIPS] Replace BARRIER with more appropriate hazard barrier. 2006-09-27 13:37:54 +01:00
momentum [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
oprofile [MIPS] Oprofile: Fix build failure due to warning and -Werror. 2006-07-13 21:26:09 +01:00
pci [MIPS] Remove EV96100 as previously announced. 2006-09-27 13:37:55 +01:00
philips/pnx8550 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
pmc-sierra [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
qemu [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
sgi-ip22 [MIPS] IP22 Fix brown paper bag in RTC code. 2006-07-13 21:26:18 +01:00
sgi-ip27 [PATCH] reduce MAX_NR_ZONES: move HIGHMEM counters into highmem.c/.h 2006-09-26 08:48:46 -07:00
sgi-ip32 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
sibyte [MIPS] Fix 32-bit kernel by replacing 64-bit-only code. 2006-09-27 13:37:35 +01:00
sni [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
tx4927 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
tx4938 [MIPS] Replace board_timer_setup function pointer by plat_timer_setup. 2006-07-13 21:26:17 +01:00
vr41xx [MIPS] vr41xx: Update workpad setup function 2006-07-13 21:26:21 +01:00
defconfig [MIPS] Enable tmpfs for anything that possibly runs a full distribution. 2006-09-27 13:37:57 +01:00
Kconfig [MIPS] Remove EV96100 as previously announced. 2006-09-27 13:37:55 +01:00
Kconfig.debug [MIPS] TRACE_IRQFLAGS_SUPPORT support. 2006-07-13 21:26:09 +01:00
Makefile [MIPS] Remove EV96100 as previously announced. 2006-09-27 13:37:55 +01:00