]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/itmt: Convert "sysctl_sched_itmt_enabled" to boolean
authorK Prateek Nayak <kprateek.nayak@amd.com>
Mon, 23 Dec 2024 04:34:00 +0000 (04:34 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 13 Jan 2025 13:10:23 +0000 (14:10 +0100)
commit2f6f726bdda5f24227de10bc599038e0ca0d65f4
tree3c597aeae696cead3ec598b7c69ba0bb65c1e8ba
parent873199d27bb25889ab7ccca03c8f30c67f18ae52
x86/itmt: Convert "sysctl_sched_itmt_enabled" to boolean

In preparation to move "sysctl_sched_itmt_enabled" to debugfs, convert
the unsigned int to bool since debugfs readily exposes boolean fops
primitives (debugfs_read_file_bool, debugfs_write_file_bool) which can
streamline the conversion.

Since the current ctl_table initializes extra1 and extra2 to SYSCTL_ZERO
and SYSCTL_ONE respectively, the value of "sysctl_sched_itmt_enabled"
can only be 0 or 1 and this datatype conversion should not cause any
functional changes.

Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Link: https://lore.kernel.org/r/20241223043407.1611-2-kprateek.nayak@amd.com
arch/x86/include/asm/topology.h
arch/x86/kernel/itmt.c