diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index cd870a823d18..eac936eb3190 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -172,6 +172,18 @@ int __init ppc_setup_l2cr(char *str) | |||
172 | } | 172 | } |
173 | __setup("l2cr=", ppc_setup_l2cr); | 173 | __setup("l2cr=", ppc_setup_l2cr); |
174 | 174 | ||
175 | /* Checks "l3cr=xxxx" command-line option */ | ||
176 | int __init ppc_setup_l3cr(char *str) | ||
177 | { | ||
178 | if (cpu_has_feature(CPU_FTR_L3CR)) { | ||
179 | unsigned long val = simple_strtoul(str, NULL, 0); | ||
180 | printk(KERN_INFO "l3cr set to %lx\n", val); | ||
181 | _set_L3CR(val); /* and enable it */ | ||
182 | } | ||
183 | return 1; | ||
184 | } | ||
185 | __setup("l3cr=", ppc_setup_l3cr); | ||
186 | |||
175 | #ifdef CONFIG_GENERIC_NVRAM | 187 | #ifdef CONFIG_GENERIC_NVRAM |
176 | 188 | ||
177 | /* Generic nvram hooks used by drivers/char/gen_nvram.c */ | 189 | /* Generic nvram hooks used by drivers/char/gen_nvram.c */ |