cvs commit: src/sys/kern sched_4bsd.c

Bruce Evans bde at zeta.org.au
Thu Apr 27 17:15:02 UTC 2006


On Thu, 27 Apr 2006, Pawel Jakub Dawidek wrote:

> On Wed, Apr 26, 2006 at 07:42:39PM +0000, John-Mark Gurney wrote:
> +> jmg         2006-04-26 19:42:38 UTC
> +>
> +>   FreeBSD src repository
> +>
> +>   Modified files:
> +>     sys/kern             sched_4bsd.c
> +>   Log:
> +>   move remaining sysctl into the kern.sched tree...
> [...]
> +> -SYSCTL_INT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
> +> +SYSCTL_INT(_kern_sched, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
> [...]
>
> Too fast.

Just a bug.

> # grep -r kern.ccpu /usr/src/
> /usr/src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c:  if (sysctlbyname("kern.ccpu", &ccpu, &len, NULL, 0) == -1) {
> /usr/src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c:          syslog(LOG_ERR, "hrProcessorTable: sysctl(kern.ccpu) failed");
> /usr/src/usr.bin/systat/pigs.c: err = sysctlbyname("kern.ccpu", &ccpu, &len, NULL, 0);
> /usr/src/usr.bin/systat/pigs.c:         perror("kern.ccpu");
> /usr/src/usr.bin/top/machine.c: GETSYSCTL("kern.ccpu", ccpu);
> /usr/src/bin/ps/nlist.c:        if (sysctlbyname("kern.ccpu", &ccpu, &oldlen, NULL, 0) == -1)

grep -r "kern.*ccpu" would also have shown SYSCTL_INT(_kern, ..., ccpu)
in sched_ule.c.  I.e., the applications still work with SCHED_ULE.

grep in my old NetBSD source tree showed ccpu/KERN_CCPU under kern.

grep in my old ports tree didn't show any matches.

Bruce


More information about the cvs-src mailing list