diff options
author | Arjan van de Ven <arjanv@redhat.com> | 2004-06-19 19:33:28 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-19 19:33:28 -0700 |
commit | 22e53c6563f5a1f73499315d8082b9cce5545564 (patch) | |
tree | abc2c830ac7415e927e18decb77341fe36ecc490 /mm | |
parent | 058bee31dddd66560a11321b8b067e6e6da6203b (diff) | |
download | history-22e53c6563f5a1f73499315d8082b9cce5545564.tar.gz |
[PATCH] fix amd64 boot breakage
This fixes a bug that prevent my amd64 box from booting;
numa_default_policy was __init however it's called like this in
init/main.c:
free_initmem();
unlock_kernel();
system_state = SYSTEM_RUNNING;
numa_default_policy();
eg after free_initmem(). This resulted in it being reused/freed and that
gives a nasty oops.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mempolicy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index ad260e0dbb593c..096a2490471924 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1022,7 +1022,7 @@ void __init numa_policy_init(void) /* Reset policy of current process to default. * Assumes fs == KERNEL_DS */ -void __init numa_default_policy(void) +void numa_default_policy(void) { sys_set_mempolicy(MPOL_DEFAULT, NULL, 0); } |