Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/sparc64/identcpu.c
Show All 20 Lines | |||||
char machine[] = MACHINE; | char machine[] = MACHINE; | ||||
SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, | SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, | ||||
machine, 0, "Machine class"); | machine, 0, "Machine class"); | ||||
static char cpu_model[128]; | static char cpu_model[128]; | ||||
SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, | SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, | ||||
cpu_model, 0, "Machine model"); | cpu_model, 0, "Machine model"); | ||||
static SYSCTL_NODE(_hw, OID_AUTO, freq, CTLFLAG_RD, 0, ""); | static SYSCTL_NODE(_hw, OID_AUTO, freq, CTLFLAG_RD, 0, | ||||
"Machine frequencies"); | |||||
static u_int cpu_count; | static u_int cpu_count; | ||||
static u_int cpu_freq; | static u_int cpu_freq; | ||||
SYSCTL_UINT(_hw_freq, OID_AUTO, cpu, CTLFLAG_RD, &cpu_freq, 0, | SYSCTL_UINT(_hw_freq, OID_AUTO, cpu, CTLFLAG_RD, &cpu_freq, 0, | ||||
"CPU clock frequency"); | "CPU clock frequency"); | ||||
void | void | ||||
cpu_identify(u_long vers, u_int freq, u_int id) | cpu_identify(u_long vers, u_int freq, u_int id) | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |