Browse Source

sysctl: Use CONFIG_SPARC instead of __sparc__ for ifdef tests.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 16 years ago
parent
commit
72c57ed506
1 changed files with 2 additions and 2 deletions
  1. 2 2
      kernel/sysctl.c

+ 2 - 2
kernel/sysctl.c

@@ -118,7 +118,7 @@ extern char modprobe_path[];
 extern int sg_big_buff;
 extern int sg_big_buff;
 #endif
 #endif
 
 
-#ifdef __sparc__
+#ifdef CONFIG_SPARC
 extern char reboot_command [];
 extern char reboot_command [];
 extern int stop_a_enabled;
 extern int stop_a_enabled;
 extern int scons_pwroff;
 extern int scons_pwroff;
@@ -414,7 +414,7 @@ static struct ctl_table kern_table[] = {
 		.mode		= 0644,
 		.mode		= 0644,
 		.proc_handler	= &proc_dointvec,
 		.proc_handler	= &proc_dointvec,
 	},
 	},
-#ifdef __sparc__
+#ifdef CONFIG_SPARC
 	{
 	{
 		.ctl_name	= KERN_SPARC_REBOOT,
 		.ctl_name	= KERN_SPARC_REBOOT,
 		.procname	= "reboot-cmd",
 		.procname	= "reboot-cmd",