Commit e572d2bc authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] Add two sysctls for PA-RISC

Add two PA-RISC sysctls.
parent 659b9a33
...@@ -130,6 +130,8 @@ enum ...@@ -130,6 +130,8 @@ enum
KERN_PIDMAX=55, /* int: PID # limit */ KERN_PIDMAX=55, /* int: PID # limit */
KERN_CORE_PATTERN=56, /* string: pattern for core-file names */ KERN_CORE_PATTERN=56, /* string: pattern for core-file names */
KERN_PANIC_ON_OOPS=57, /* int: whether we will panic on an oops */ KERN_PANIC_ON_OOPS=57, /* int: whether we will panic on an oops */
KERN_HPPA_PWRSW=58, /* int: hppa soft-power enable */
KERN_HPPA_UNALIGNED=59, /* int: hppa unaligned-trap enable */
}; };
......
...@@ -87,6 +87,11 @@ extern char reboot_command []; ...@@ -87,6 +87,11 @@ extern char reboot_command [];
extern int stop_a_enabled; extern int stop_a_enabled;
#endif #endif
#ifdef __hppa__
extern int pwrsw_enabled;
extern int unaligned_enabled;
#endif
#ifdef CONFIG_ARCH_S390 #ifdef CONFIG_ARCH_S390
#ifdef CONFIG_MATHEMU #ifdef CONFIG_MATHEMU
extern int sysctl_ieee_emulation_warnings; extern int sysctl_ieee_emulation_warnings;
...@@ -313,6 +318,30 @@ static ctl_table kern_table[] = { ...@@ -313,6 +318,30 @@ static ctl_table kern_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
#endif #endif
#ifdef __hppa__
{
.ctl_name = KERN_HPPA_PWRSW,
.procname = "soft-power",
.data = &pwrsw_enabled,
.maxlen = sizeof (int),
.mode = 0644,
.proc_handler = &proc_dointvec,
},
{
.ctl_name = KERN_HPPA_UNALIGNED,
.procname = "unaligned-trap",
.data = &unaligned_enabled,
.maxlen = sizeof (int),
.mode = 0644,
.proc_handler = &proc_dointvec,
},
#endif
#ifdef __hppa__
{KERN_HPPA_PWRSW, "soft-power", &pwrsw_enabled, sizeof (int),
0644, NULL, &proc_dointvec},
{KERN_HPPA_UNALIGNED, "unaligned-trap", &unaligned_enabled, sizeof (int),
0644, NULL, &proc_dointvec},
#endif
#if defined(CONFIG_PPC32) && defined(CONFIG_6xx) #if defined(CONFIG_PPC32) && defined(CONFIG_6xx)
{ {
.ctl_name = KERN_PPC_POWERSAVE_NAP, .ctl_name = KERN_PPC_POWERSAVE_NAP,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment