.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * (C) 2010,2011 Thomas Renninger <trenn@suse.de>, Novell Inc. |
---|
3 | | - * |
---|
4 | | - * Licensed under the terms of the GNU GPL License version 2. |
---|
5 | 4 | * |
---|
6 | 5 | * Miscellaneous helpers which do not fit or are worth |
---|
7 | 6 | * to put into separate headers |
---|
.. | .. |
---|
61 | 60 | |
---|
62 | 61 | /* cpuid and cpuinfo helpers **************************/ |
---|
63 | 62 | 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}; |
---|
65 | 64 | |
---|
66 | 65 | #define CPUPOWER_CAP_INV_TSC 0x00000001 |
---|
67 | 66 | #define CPUPOWER_CAP_APERF 0x00000002 |
---|
.. | .. |
---|
70 | 69 | #define CPUPOWER_CAP_HAS_TURBO_RATIO 0x00000010 |
---|
71 | 70 | #define CPUPOWER_CAP_IS_SNB 0x00000020 |
---|
72 | 71 | #define CPUPOWER_CAP_INTEL_IDA 0x00000040 |
---|
| 72 | +#define CPUPOWER_CAP_AMD_RDPRU 0x00000080 |
---|
73 | 73 | |
---|
74 | 74 | #define CPUPOWER_AMD_CPBDIS 0x02000000 |
---|
75 | 75 | |
---|