Changeset 513e234 in rtems-libbsd


Ignore:
Timestamp:
Jan 29, 2015, 7:24:58 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
cbffc0b0
Parents:
b68b88c
git-author:
Sebastian Huber <sebastian.huber@…> (01/29/15 07:24:58)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/29/15 07:51:47)
Message:

Add SMP sysctls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/rtems/rtems-bsd-init.c

    rb68b88c r513e234  
    4545#include <sys/systm.h>
    4646#include <sys/kernel.h>
     47#include <sys/sysctl.h>
    4748#include <rtems/bsd/sys/lock.h>
    4849#include <sys/mutex.h>
     
    7374struct bintime boottimebin;
    7475struct timeval boottime;
     76
     77static SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD|CTLFLAG_CAPRD, NULL,
     78    "Kernel SMP");
     79
     80static int one = 1;
     81
     82SYSCTL_INT(_kern_smp, OID_AUTO, maxid, CTLFLAG_RD|CTLFLAG_CAPRD, &one, 0,
     83    "Max CPU ID.");
     84
     85SYSCTL_INT(_kern_smp, OID_AUTO, maxcpus, CTLFLAG_RD|CTLFLAG_CAPRD, &one,
     86    0, "Max number of CPUs that the system was compiled for.");
    7587
    7688rtems_status_code
Note: See TracChangeset for help on using the changeset viewer.