summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2002-10-09 22:39:20 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-10-09 22:39:20 -0700
commit7daebc2ae9f6ed9798a45fc34bd0207784db08d4 (patch)
treeb7a18f658e8c8ac55cac6a629951b643801a71d1
parent59cc52713b7c37e9dcfda842b78c497968f41075 (diff)
[PATCH] adjust PPC sysctls
This patch takes out the unused KERN_PPC_ZEROPAGED sysctl, and restricts the KERN_PPC_POWERSAVE_NAP and KERN_PPC_L2CR sysctls to be present only on those PPC processors where they are useful. This patch only affects PPC.
-rw-r--r--kernel/sysctl.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 1a63d254ab80..d05502120e84 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -88,8 +88,8 @@ extern int sysctl_ieee_emulation_warnings;
extern int sysctl_userprocess_debug;
#endif
-#ifdef CONFIG_PPC32
-extern unsigned long zero_paged_on, powersave_nap;
+#if defined(CONFIG_PPC32) && defined(CONFIG_6xx)
+extern unsigned long powersave_nap;
int proc_dol2crvec(ctl_table *table, int write, struct file *filp,
void *buffer, size_t *lenp);
#endif
@@ -190,9 +190,7 @@ static ctl_table kern_table[] = {
{KERN_SPARC_STOP_A, "stop-a", &stop_a_enabled, sizeof (int),
0644, NULL, &proc_dointvec},
#endif
-#ifdef CONFIG_PPC32
- {KERN_PPC_ZEROPAGED, "zero-paged", &zero_paged_on, sizeof(int),
- 0644, NULL, &proc_dointvec},
+#if defined(CONFIG_PPC32) && defined(CONFIG_6xx)
{KERN_PPC_POWERSAVE_NAP, "powersave-nap", &powersave_nap, sizeof(int),
0644, NULL, &proc_dointvec},
{KERN_PPC_L2CR, "l2cr", NULL, 0,