MIPS: Move processing of coherency kernel parameters earlier
Commit 97ce2c88f9ad42e3c60a9beb9fca87abf3639faa (jump-label: initialize jump-label subsystem much earlier) caused MIPS to break, so this was resolved with commit 6650df3c380e0db558dbfec63ed860402c6afb2a (MIPS:
Move cache setup to setup_arch().). Unfortunately, after this commit, the coherency kernel parameters, cca and coherentio, are no longer processed before their values are used.
This patch fixes this problem by marking them as early_param, which results in them being processed before they are needed.
Signed-off-by Shane McDonald <[email protected]>
Acked-by David Daney <[email protected]>
Cc Ralf Baechle <[email protected]>
--- arch/mips/mm/c-r4k.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
arch/mips/mm/c-r4k.c +4 -4
@@ -1316,10 +1316,10 @@ static int __init cca_setup(char *str) {get_option (&str, &cca); -return 1 ; +return 0 ; } -__setup ("cca=" , cca_setup); +early_param ("cca" , cca_setup);static void __cpuinit coherency_setup (void ) {
@@ -1369,10 +1369,10 @@ static int __init setcoherentio(char *str) { coherentio =1 ; -return 1 ; +return 0 ; } -__setup ("coherentio" , setcoherentio); +early_param ("coherentio" , setcoherentio);#endif static void __cpuinit r4k_cache_error_setup (void )
Signature · 1 line
1.7.2.5