git: 78962f9b66d1 - main - amd64 FRED: normalize the user-provided 'fred' knob value
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Oct 2026 01:35:06 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=78962f9b66d1f84b957ddac3f528f184ba1f4739
commit 78962f9b66d1f84b957ddac3f528f184ba1f4739
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-10-29 01:26:04 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-10-29 01:33:47 +0000
amd64 FRED: normalize the user-provided 'fred' knob value
Assembler accesses 'fred' as byte, ensure that any non-zero
user-provided value works. This is pure cosmetics.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
sys/amd64/amd64/machdep.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index b5a06efd37e6..a714c4e52b9b 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -1398,6 +1398,8 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
(cpu_stdext_feature & CPUID_STDEXT_FSGSBASE) != 0 && !pti) {
fred = 1;
TUNABLE_INT_FETCH("hw.fred", &fred);
+ if (fred != 0)
+ fred = 1;
}
sched_instance_select();