powerpc: Mark cpu_feature-based sysctls as MP_SAFE
hw.floatingpoint and hw.altivec are effectively runtime constants (bits from the cpu_feature bitfield), so don't need Giant, or any locking for that matter.
This commit is contained in:
parent
03b6e7a627
commit
4dc25d4452
@ -259,10 +259,10 @@ register_t lpcr = LPCR_LPES;
|
||||
#endif
|
||||
|
||||
/* Provide some user-friendly aliases for bits in cpu_features */
|
||||
SYSCTL_PROC(_hw, OID_AUTO, floatingpoint, CTLTYPE_INT | CTLFLAG_RD,
|
||||
0, PPC_FEATURE_HAS_FPU, cpu_feature_bit, "I",
|
||||
"Floating point instructions executed in hardware");
|
||||
SYSCTL_PROC(_hw, OID_AUTO, altivec, CTLTYPE_INT | CTLFLAG_RD,
|
||||
SYSCTL_PROC(_hw, OID_AUTO, floatingpoint,
|
||||
CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE, 0, PPC_FEATURE_HAS_FPU,
|
||||
cpu_feature_bit, "I", "Floating point instructions executed in hardware");
|
||||
SYSCTL_PROC(_hw, OID_AUTO, altivec, CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE,
|
||||
0, PPC_FEATURE_HAS_ALTIVEC, cpu_feature_bit, "I", "CPU supports Altivec");
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user