subr_smp.c (6f3544cd7084abbadd83637993a4f41fd30e6ccd) subr_smp.c (fbbb13f962e52bf547c5a901fe6fbc4390f6be54)
1/*-
2 * Copyright (c) 2001, John Baldwin <jhb@FreeBSD.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 59 unchanged lines hidden (view full) ---

68/* export this for libkvm consumers. */
69int mp_maxcpus = MAXCPU;
70
71volatile int smp_started;
72u_int mp_maxid;
73
74SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD, NULL, "Kernel SMP");
75
1/*-
2 * Copyright (c) 2001, John Baldwin <jhb@FreeBSD.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 59 unchanged lines hidden (view full) ---

68/* export this for libkvm consumers. */
69int mp_maxcpus = MAXCPU;
70
71volatile int smp_started;
72u_int mp_maxid;
73
74SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD, NULL, "Kernel SMP");
75
76SYSCTL_INT(_kern_smp, OID_AUTO, maxid, CTLFLAG_RD, &mp_maxid, 0,
76SYSCTL_UINT(_kern_smp, OID_AUTO, maxid, CTLFLAG_RD, &mp_maxid, 0,
77 "Max CPU ID.");
78
79SYSCTL_INT(_kern_smp, OID_AUTO, maxcpus, CTLFLAG_RD, &mp_maxcpus, 0,
80 "Max number of CPUs that the system was compiled for.");
81
82int smp_active = 0; /* are the APs allowed to run? */
83SYSCTL_INT(_kern_smp, OID_AUTO, active, CTLFLAG_RW, &smp_active, 0,
84 "Number of Auxillary Processors (APs) that were successfully started");

--- 557 unchanged lines hidden ---
77 "Max CPU ID.");
78
79SYSCTL_INT(_kern_smp, OID_AUTO, maxcpus, CTLFLAG_RD, &mp_maxcpus, 0,
80 "Max number of CPUs that the system was compiled for.");
81
82int smp_active = 0; /* are the APs allowed to run? */
83SYSCTL_INT(_kern_smp, OID_AUTO, active, CTLFLAG_RW, &smp_active, 0,
84 "Number of Auxillary Processors (APs) that were successfully started");

--- 557 unchanged lines hidden ---