From 942df7e76570cf8fe6f446d3919cdce0add1b9f1 Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Sun, 3 Aug 2008 14:11:06 +0000 Subject: [PATCH] Document a few sysctls. Approved by: imp --- sys/mips/mips/machdep.c | 9 +++++---- sys/mips/mips/tick.c | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c index 28d1fb3fc32..03cc86a2bff 100644 --- a/sys/mips/mips/machdep.c +++ b/sys/mips/mips/machdep.c @@ -236,22 +236,23 @@ sysctl_machdep_adjkerntz(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_machdep, CPU_ADJKERNTZ, adjkerntz, CTLTYPE_INT | CTLFLAG_RW, - &adjkerntz, 0, sysctl_machdep_adjkerntz, "I", ""); + &adjkerntz, 0, sysctl_machdep_adjkerntz, "I", + "Local offset from GMT in seconds"); #endif /* PORT_TO_JMIPS */ #ifdef PORT_TO_JMIPS /* art */ SYSCTL_INT(_machdep, CPU_DISRTCSET, disable_rtc_set, CTLFLAG_RW, - &disable_rtc_set, 0, ""); + &disable_rtc_set, 0, "Disable setting the real time clock to system time"); #endif /* PORT_TO_JMIPS */ SYSCTL_STRUCT(_machdep, CPU_BOOTINFO, bootinfo, CTLFLAG_RD, &bootinfo, - bootinfo, ""); + bootinfo, "Bootinfo struct: kernel filename, BIOS harddisk geometry, etc"); #ifdef PORT_TO_JMIPS /* dchu */ SYSCTL_INT(_machdep, CPU_WALLCLOCK, wall_cmos_clock, CTLFLAG_RW, - &wall_cmos_clock, 0, ""); + &wall_cmos_clock, 0, "Wall CMOS clock assumed"); #endif /* PORT_TO_JMIPS */ /* diff --git a/sys/mips/mips/tick.c b/sys/mips/mips/tick.c index 0f8ba262cb1..faae90ed57b 100644 --- a/sys/mips/mips/tick.c +++ b/sys/mips/mips/tick.c @@ -186,7 +186,8 @@ sysctl_machdep_counter_freq(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_machdep, OID_AUTO, counter_freq, CTLTYPE_QUAD | CTLFLAG_RW, - 0, sizeof(u_int), sysctl_machdep_counter_freq, "IU", ""); + 0, sizeof(u_int), sysctl_machdep_counter_freq, "IU", + "Timecounter frequency in Hz"); static unsigned counter_get_timecount(struct timecounter *tc)