aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/c-r4k.c
diff options
context:
space:
mode:
authorShane McDonald <mcdonald.shane@gmail.com>2012-06-13 22:26:40 -0400
committerJohn Crispin <blogic@openwrt.org>2012-11-09 05:37:16 -0500
commitb5b64f2ba434cd2082a89aecec4b4c1eaec742c0 (patch)
tree0bdee1e4f388d0f358ac3fbd83dd2c075a2fd352 /arch/mips/mm/c-r4k.c
parent0f731711af2086e40a19420eddae1a589355e2ea (diff)
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 <mcdonald.shane@gmail.com> Acked-by: David Daney <david.daney@cavium.com> Cc: Ralf Baechle <ralf@linux-mips.org> Patchwork: http://patchwork.linux-mips.org/patch/3961 Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/mm/c-r4k.c')
-rw-r--r--arch/mips/mm/c-r4k.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
index 4c32ede464b5..1d6fee48d0dd 100644
--- a/arch/mips/mm/c-r4k.c
+++ b/arch/mips/mm/c-r4k.c
@@ -1348,10 +1348,10 @@ static int __init cca_setup(char *str)
1348{ 1348{
1349 get_option(&str, &cca); 1349 get_option(&str, &cca);
1350 1350
1351 return 1; 1351 return 0;
1352} 1352}
1353 1353
1354__setup("cca=", cca_setup); 1354early_param("cca", cca_setup);
1355 1355
1356static void __cpuinit coherency_setup(void) 1356static void __cpuinit coherency_setup(void)
1357{ 1357{
@@ -1401,10 +1401,10 @@ static int __init setcoherentio(char *str)
1401{ 1401{
1402 coherentio = 1; 1402 coherentio = 1;
1403 1403
1404 return 1; 1404 return 0;
1405} 1405}
1406 1406
1407__setup("coherentio", setcoherentio); 1407early_param("coherentio", setcoherentio);
1408#endif 1408#endif
1409 1409
1410static void __cpuinit r4k_cache_error_setup(void) 1410static void __cpuinit r4k_cache_error_setup(void)