git: 00c069c68c30 - stable/13 - mca: Make some sysctls also a loader tunables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Dec 2021 04:00:21 UTC
The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=00c069c68c304ed59bdb29c227de3b3c92ac3b94 commit 00c069c68c304ed59bdb29c227de3b3c92ac3b94 Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-08 03:20:59 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-12-15 04:00:17 +0000 mca: Make some sysctls also a loader tunables. MFC after: 1 week (cherry picked from commit c2003f268480f040f422c4d7e2d5f590e7084ba2) --- sys/x86/x86/mca.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/x86/x86/mca.c b/sys/x86/x86/mca.c index 801e18073a52..dcb3179bbb70 100644 --- a/sys/x86/x86/mca.c +++ b/sys/x86/x86/mca.c @@ -985,7 +985,7 @@ cmci_setup(void) cmc_state[i] = malloc(sizeof(struct cmc_state) * mca_banks, M_MCA, M_WAITOK | M_ZERO); SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO, - "cmc_throttle", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, + "cmc_throttle", CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, &cmc_throttle, 0, sysctl_positive_int, "I", "Interval in seconds to throttle corrected MC interrupts"); } @@ -1001,7 +1001,7 @@ amd_thresholding_setup(void) amd_et_state[i] = malloc(sizeof(struct amd_et_state) * mca_banks, M_MCA, M_WAITOK | M_ZERO); SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO, - "cmc_throttle", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, + "cmc_throttle", CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, &cmc_throttle, 0, sysctl_positive_int, "I", "Interval in seconds to throttle corrected MC interrupts"); } @@ -1037,8 +1037,8 @@ mca_setup(uint64_t mcg_cap) &mca_maxcount, 0, sysctl_mca_maxcount, "I", "Maximum record count (-1 is unlimited)"); SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO, - "interval", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &mca_ticks, - 0, sysctl_positive_int, "I", + "interval", CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, + &mca_ticks, 0, sysctl_positive_int, "I", "Periodic interval in seconds to scan for machine checks"); SYSCTL_ADD_NODE(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO, "records", CTLFLAG_RD | CTLFLAG_MPSAFE, sysctl_mca_records,