Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/cpuinfo.c
Show All 12 Lines | |||||
{ | { | ||||
/* Use safe defaults for start */ | /* Use safe defaults for start */ | ||||
.dcache_line_size = 32, | .dcache_line_size = 32, | ||||
.dcache_line_mask = 31, | .dcache_line_mask = 31, | ||||
.icache_line_size = 32, | .icache_line_size = 32, | ||||
.icache_line_mask = 31, | .icache_line_mask = 31, | ||||
}; | }; | ||||
static SYSCTL_NODE(_hw, OID_AUTO, cpu, CTLFLAG_RD, 0, | static SYSCTL_NODE(_hw, OID_AUTO, cpu, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"CPU"); | "CPU"); | ||||
static SYSCTL_NODE(_hw_cpu, OID_AUTO, quirks, CTLFLAG_RD, 0, | static SYSCTL_NODE(_hw_cpu, OID_AUTO, quirks, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"CPU quirks"); | "CPU quirks"); | ||||
/* | /* | ||||
* Tunable CPU quirks. | * Tunable CPU quirks. | ||||
* Be careful, ACTRL cannot be changed if CPU is started in secure | * Be careful, ACTRL cannot be changed if CPU is started in secure | ||||
* mode(world) and write to ACTRL can cause exception! | * mode(world) and write to ACTRL can cause exception! | ||||
* These quirks are intended for optimizing CPU performance, not for | * These quirks are intended for optimizing CPU performance, not for | ||||
* applying errata workarounds. Nobody can expect that CPU with unfixed | * applying errata workarounds. Nobody can expect that CPU with unfixed | ||||
Show All 12 Lines |