Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e572d2bc
Commit
e572d2bc
authored
Jul 10, 2003
by
Matthew Wilcox
Committed by
Linus Torvalds
Jul 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Add two sysctls for PA-RISC
Add two PA-RISC sysctls.
parent
659b9a33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
include/linux/sysctl.h
include/linux/sysctl.h
+2
-0
kernel/sysctl.c
kernel/sysctl.c
+29
-0
No files found.
include/linux/sysctl.h
View file @
e572d2bc
...
@@ -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 */
};
};
...
...
kernel/sysctl.c
View file @
e572d2bc
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment