mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
arm: export actlr as sysctl hw.cpu.quirks.actlr_value
Reviewed by: cognet
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
83ec48b792
commit
80b1995bb5
1 changed files with 13 additions and 0 deletions
|
|
@ -77,6 +77,19 @@ SYSCTL_INT(_hw_cpu_quirks, OID_AUTO, actlr_set,
|
|||
CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &cpu_quirks_actlr_set, 0,
|
||||
"Bits to be set in ACTLR");
|
||||
|
||||
static int
|
||||
sysctl_hw_cpu_quirks_actrl_value(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
uint32_t reg;
|
||||
|
||||
reg = cp15_actlr_get();
|
||||
return (SYSCTL_OUT(req, ®, sizeof(reg)));
|
||||
}
|
||||
SYSCTL_PROC(_hw_cpu_quirks, OID_AUTO, actlr_value,
|
||||
CTLTYPE_UINT | CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, 0,
|
||||
sysctl_hw_cpu_quirks_actrl_value, "IU",
|
||||
"Value of ACTLR");
|
||||
|
||||
/* Read and parse CPU id scheme */
|
||||
void
|
||||
cpuinfo_init(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue