hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/tools/power/cpupower/utils/helpers/helpers.h
....@@ -1,7 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * (C) 2010,2011 Thomas Renninger <trenn@suse.de>, Novell Inc.
3
- *
4
- * Licensed under the terms of the GNU GPL License version 2.
54 *
65 * Miscellaneous helpers which do not fit or are worth
76 * to put into separate headers
....@@ -61,7 +60,7 @@
6160
6261 /* cpuid and cpuinfo helpers **************************/
6362 enum cpupower_cpu_vendor {X86_VENDOR_UNKNOWN = 0, X86_VENDOR_INTEL,
64
- X86_VENDOR_AMD, X86_VENDOR_MAX};
63
+ X86_VENDOR_AMD, X86_VENDOR_HYGON, X86_VENDOR_MAX};
6564
6665 #define CPUPOWER_CAP_INV_TSC 0x00000001
6766 #define CPUPOWER_CAP_APERF 0x00000002
....@@ -70,6 +69,7 @@
7069 #define CPUPOWER_CAP_HAS_TURBO_RATIO 0x00000010
7170 #define CPUPOWER_CAP_IS_SNB 0x00000020
7271 #define CPUPOWER_CAP_INTEL_IDA 0x00000040
72
+#define CPUPOWER_CAP_AMD_RDPRU 0x00000080
7373
7474 #define CPUPOWER_AMD_CPBDIS 0x02000000
7575