|
@@ -172,6 +172,18 @@ int __init ppc_setup_l2cr(char *str)
|
|
}
|
|
}
|
|
__setup("l2cr=", ppc_setup_l2cr);
|
|
__setup("l2cr=", ppc_setup_l2cr);
|
|
|
|
|
|
|
|
+/* Checks "l3cr=xxxx" command-line option */
|
|
|
|
+int __init ppc_setup_l3cr(char *str)
|
|
|
|
+{
|
|
|
|
+ if (cpu_has_feature(CPU_FTR_L3CR)) {
|
|
|
|
+ unsigned long val = simple_strtoul(str, NULL, 0);
|
|
|
|
+ printk(KERN_INFO "l3cr set to %lx\n", val);
|
|
|
|
+ _set_L3CR(val); /* and enable it */
|
|
|
|
+ }
|
|
|
|
+ return 1;
|
|
|
|
+}
|
|
|
|
+__setup("l3cr=", ppc_setup_l3cr);
|
|
|
|
+
|
|
#ifdef CONFIG_GENERIC_NVRAM
|
|
#ifdef CONFIG_GENERIC_NVRAM
|
|
|
|
|
|
/* Generic nvram hooks used by drivers/char/gen_nvram.c */
|
|
/* Generic nvram hooks used by drivers/char/gen_nvram.c */
|