[PATCH] sysctl: C99 Convert arch/ia64/sn/kernel/xpc_main.c
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
79eec3d3d9
commit
68cbf07536
@@ -101,67 +101,57 @@ static int xpc_disengage_request_max_timelimit = 120;
|
|||||||
|
|
||||||
static ctl_table xpc_sys_xpc_hb_dir[] = {
|
static ctl_table xpc_sys_xpc_hb_dir[] = {
|
||||||
{
|
{
|
||||||
CTL_UNNUMBERED,
|
.ctl_name = CTL_UNNUMBERED,
|
||||||
"hb_interval",
|
.procname = "hb_interval",
|
||||||
&xpc_hb_interval,
|
.data = &xpc_hb_interval,
|
||||||
sizeof(int),
|
.maxlen = sizeof(int),
|
||||||
0644,
|
.mode = 0644,
|
||||||
NULL,
|
.proc_handler = &proc_dointvec_minmax,
|
||||||
&proc_dointvec_minmax,
|
.strategy = &sysctl_intvec,
|
||||||
&sysctl_intvec,
|
.extra1 = &xpc_hb_min_interval,
|
||||||
NULL,
|
.extra2 = &xpc_hb_max_interval
|
||||||
&xpc_hb_min_interval,
|
|
||||||
&xpc_hb_max_interval
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
CTL_UNNUMBERED,
|
.ctl_name = CTL_UNNUMBERED,
|
||||||
"hb_check_interval",
|
.procname = "hb_check_interval",
|
||||||
&xpc_hb_check_interval,
|
.data = &xpc_hb_check_interval,
|
||||||
sizeof(int),
|
.maxlen = sizeof(int),
|
||||||
0644,
|
.mode = 0644,
|
||||||
NULL,
|
.proc_handler = &proc_dointvec_minmax,
|
||||||
&proc_dointvec_minmax,
|
.strategy = &sysctl_intvec,
|
||||||
&sysctl_intvec,
|
.extra1 = &xpc_hb_check_min_interval,
|
||||||
NULL,
|
.extra2 = &xpc_hb_check_max_interval
|
||||||
&xpc_hb_check_min_interval,
|
|
||||||
&xpc_hb_check_max_interval
|
|
||||||
},
|
},
|
||||||
{0}
|
{}
|
||||||
};
|
};
|
||||||
static ctl_table xpc_sys_xpc_dir[] = {
|
static ctl_table xpc_sys_xpc_dir[] = {
|
||||||
{
|
{
|
||||||
CTL_UNNUMBERED,
|
.ctl_name = CTL_UNNUMBERED,
|
||||||
"hb",
|
.procname = "hb",
|
||||||
NULL,
|
.mode = 0555,
|
||||||
0,
|
.child = xpc_sys_xpc_hb_dir
|
||||||
0555,
|
|
||||||
xpc_sys_xpc_hb_dir
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
CTL_UNNUMBERED,
|
.ctl_name = CTL_UNNUMBERED,
|
||||||
"disengage_request_timelimit",
|
.procname = "disengage_request_timelimit",
|
||||||
&xpc_disengage_request_timelimit,
|
.data = &xpc_disengage_request_timelimit,
|
||||||
sizeof(int),
|
.maxlen = sizeof(int),
|
||||||
0644,
|
.mode = 0644,
|
||||||
NULL,
|
.proc_handler = &proc_dointvec_minmax,
|
||||||
&proc_dointvec_minmax,
|
.strategy = &sysctl_intvec,
|
||||||
&sysctl_intvec,
|
.extra1 = &xpc_disengage_request_min_timelimit,
|
||||||
NULL,
|
.extra2 = &xpc_disengage_request_max_timelimit
|
||||||
&xpc_disengage_request_min_timelimit,
|
|
||||||
&xpc_disengage_request_max_timelimit
|
|
||||||
},
|
},
|
||||||
{0}
|
{}
|
||||||
};
|
};
|
||||||
static ctl_table xpc_sys_dir[] = {
|
static ctl_table xpc_sys_dir[] = {
|
||||||
{
|
{
|
||||||
CTL_UNNUMBERED,
|
.ctl_name = CTL_UNNUMBERED,
|
||||||
"xpc",
|
.procname = "xpc",
|
||||||
NULL,
|
.mode = 0555,
|
||||||
0,
|
.child = xpc_sys_xpc_dir
|
||||||
0555,
|
|
||||||
xpc_sys_xpc_dir
|
|
||||||
},
|
},
|
||||||
{0}
|
{}
|
||||||
};
|
};
|
||||||
static struct ctl_table_header *xpc_sysctl;
|
static struct ctl_table_header *xpc_sysctl;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user