Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/linprocfs/linprocfs.c
Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | linprocfs_docpuinfo(PFS_FILL_ARGS) | ||||
/* | /* | ||||
* We default the flags to include all non-conflicting flags, | * We default the flags to include all non-conflicting flags, | ||||
* and the Intel versions of conflicting flags. | * and the Intel versions of conflicting flags. | ||||
*/ | */ | ||||
static char *flags[] = { | static char *flags[] = { | ||||
"fpu", "vme", "de", "pse", "tsc", | "fpu", "vme", "de", "pse", "tsc", | ||||
"msr", "pae", "mce", "cx8", "apic", | "msr", "pae", "mce", "cx8", "apic", | ||||
"sep", "sep", "mtrr", "pge", "mca", | "", "sep", "mtrr", "pge", "mca", | ||||
"cmov", "pat", "pse36", "pn", "b19", | "cmov", "pat", "pse36", "pn", "clflush", | ||||
"b20", "b21", "mmxext", "mmx", "fxsr", | "", "dts", "acpi", "mmx", "fxsr", | ||||
"xmm", "sse2", "b27", "b28", "b29", | "sse", "sse2", "ss", "ht", "tm", | ||||
"3dnowext", "3dnow" | "ia64", "pbe" | ||||
}; | }; | ||||
static char *power_flags[] = { | static char *power_flags[] = { | ||||
"ts", "fid", "vid", | "ts", "fid", "vid", | ||||
"ttp", "tm", "stc", | "ttp", "tm", "stc", | ||||
"100mhzsteps", "hwpstate", "", | "100mhzsteps", "hwpstate", "", | ||||
"cpb", "eff_freq_ro", "proc_feedback", | "cpb", "eff_freq_ro", "proc_feedback", | ||||
"acc_power", | "acc_power", | ||||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | sbuf_printf(sb, | ||||
CPUID_TO_MODEL(cpu_id), model, cpu_id & CPUID_STEPPING, | CPUID_TO_MODEL(cpu_id), model, cpu_id & CPUID_STEPPING, | ||||
fqmhz, fqkhz, | fqmhz, fqkhz, | ||||
(cache_size[2] >> 16), 0, mp_ncpus, i, mp_ncpus, | (cache_size[2] >> 16), 0, mp_ncpus, i, mp_ncpus, | ||||
i, i, /*cpu_id & CPUID_LOCAL_APIC_ID ??*/ | i, i, /*cpu_id & CPUID_LOCAL_APIC_ID ??*/ | ||||
(cpu_feature & CPUID_FPU) ? "yes" : "no", "yes", | (cpu_feature & CPUID_FPU) ? "yes" : "no", "yes", | ||||
CPUID_TO_FAMILY(cpu_id), "yes"); | CPUID_TO_FAMILY(cpu_id), "yes"); | ||||
sbuf_cat(sb, "flags\t\t:"); | sbuf_cat(sb, "flags\t\t:"); | ||||
for (j = 0; j < nitems(flags); j++) | for (j = 0; j < nitems(flags); j++) | ||||
if (cpu_feature & (1 << j)) | if (cpu_feature & (1 << j) && flags[j][0] != '\0') | ||||
sbuf_printf(sb, " %s", flags[j]); | sbuf_printf(sb, " %s", flags[j]); | ||||
sbuf_cat(sb, "\n"); | sbuf_cat(sb, "\n"); | ||||
sbuf_printf(sb, | sbuf_printf(sb, | ||||
"bugs\t\t: %s\n" | "bugs\t\t: %s\n" | ||||
"bogomips\t: %d.%02d\n" | "bogomips\t: %d.%02d\n" | ||||
"clflush size\t: %d\n" | "clflush size\t: %d\n" | ||||
"cache_alignment\t: %d\n" | "cache_alignment\t: %d\n" | ||||
"address sizes\t: %d bits physical, %d bits virtual\n", | "address sizes\t: %d bits physical, %d bits virtual\n", | ||||
▲ Show 20 Lines • Show All 1,456 Lines • Show Last 20 Lines |