xref: /src/sys/x86/cpufreq/hwpstate_common.c (revision 8043295875083b57a6b7b2dc6826fde4cf4e1ba1)
1 /*
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2026 The FreeBSD Foundation
5  *
6  * This software was developed by Olivier Certner <olce@FreeBSD.org> at Kumacom
7  * SARL under sponsorship from the FreeBSD Foundation.
8  */
9 
10 #include <sys/sysctl.h>
11 
12 #include <x86/cpufreq/hwpstate_common.h>
13 
14 
15 int hwpstate_verbose;
16 SYSCTL_INT(_debug, OID_AUTO, hwpstate_verbose, CTLFLAG_RWTUN,
17     &hwpstate_verbose, 0, "Debug hwpstate");
18 
19 bool hwpstate_pkg_ctrl_enable = true;
20 SYSCTL_BOOL(_machdep, OID_AUTO, hwpstate_pkg_ctrl, CTLFLAG_RDTUN,
21     &hwpstate_pkg_ctrl_enable, 0,
22     "Set 1 (default) to enable package-level control, 0 to disable");
23