Re: [PATCH] PPC64 mmu_context_init needs to run earlier

From: Andrew Morton
Date: Wed Nov 03 2004 - 18:10:36 EST


Paul Mackerras <paulus@xxxxxxxxx> wrote:
>
> This patch is from Nathan Lynch <nathanl@xxxxxxxxxxxxxx>.
>
> This patch changes mmu_context_init to be called as a core_initcall
> rather than an arch_initcall, since mmu_context_init needs to run
> before we try to run any userspace processes, and arch_initcall was
> found to be too late.
>

This all seemed to peter out. Did we end up with a more convincing patch?

>
> diff -puN arch/ppc64/mm/init.c~ppc64-make-mmu_context_init-core_initcall arch/ppc64/mm/init.c
> --- linux-2.6.10-rc1-bk11/arch/ppc64/mm/init.c~ppc64-make-mmu_context_init-core_initcall 2004-11-01 19:51:46.000000000 -0600
> +++ linux-2.6.10-rc1-bk11-nathanl/arch/ppc64/mm/init.c 2004-11-01 19:53:24.000000000 -0600
> @@ -529,7 +529,7 @@ static int __init mmu_context_init(void)
>
> return 0;
> }
> -arch_initcall(mmu_context_init);
> +core_initcall(mmu_context_init);
>
> /*
> * Do very early mm setup.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/