Commit 22e53c65 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds

[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.
parent 058bee31
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment