mirror of
https://github.com/cyring/CoreFreq.git
synced 2025-07-23 04:12:59 +02:00
[Kernel] Defer cpufreq get_policy
and asm/amd/nb.h
to v6.16
This commit is contained in:
2
Makefile
2
Makefile
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
COREFREQ_MAJOR = 2
|
COREFREQ_MAJOR = 2
|
||||||
COREFREQ_MINOR = 0
|
COREFREQ_MINOR = 0
|
||||||
COREFREQ_REV = 6
|
COREFREQ_REV = 7
|
||||||
HW = $(shell uname -m)
|
HW = $(shell uname -m)
|
||||||
CC ?= cc
|
CC ?= cc
|
||||||
WARNING ?= -Wall -Wfatal-errors
|
WARNING ?= -Wall -Wfatal-errors
|
||||||
|
@@ -2299,7 +2299,7 @@ static PROCESSOR_SPECIFIC *LookupProcessor(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_FREQ
|
#ifdef CONFIG_CPU_FREQ
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
|
||||||
static int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
|
static int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
|
||||||
{
|
{
|
||||||
struct cpufreq_policy *cpu_policy __free(put_cpufreq_policy);
|
struct cpufreq_policy *cpu_policy __free(put_cpufreq_policy);
|
||||||
|
@@ -959,7 +959,7 @@ static PROCESSOR_SPECIFIC *LookupProcessor(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_FREQ
|
#ifdef CONFIG_CPU_FREQ
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
|
||||||
static int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
|
static int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
|
||||||
{
|
{
|
||||||
struct cpufreq_policy *cpu_policy __free(put_cpufreq_policy);
|
struct cpufreq_policy *cpu_policy __free(put_cpufreq_policy);
|
||||||
|
@@ -943,7 +943,7 @@ static PROCESSOR_SPECIFIC *LookupProcessor(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_FREQ
|
#ifdef CONFIG_CPU_FREQ
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
|
||||||
static int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
|
static int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
|
||||||
{
|
{
|
||||||
struct cpufreq_policy *cpu_policy __free(put_cpufreq_policy);
|
struct cpufreq_policy *cpu_policy __free(put_cpufreq_policy);
|
||||||
|
@@ -53,7 +53,7 @@
|
|||||||
#endif /* CONFIG_XEN */
|
#endif /* CONFIG_XEN */
|
||||||
#include <asm/mwait.h>
|
#include <asm/mwait.h>
|
||||||
#ifdef CONFIG_AMD_NB
|
#ifdef CONFIG_AMD_NB
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
|
||||||
#include <asm/amd/nb.h>
|
#include <asm/amd/nb.h>
|
||||||
#else
|
#else
|
||||||
#include <asm/amd_nb.h>
|
#include <asm/amd_nb.h>
|
||||||
@@ -20844,7 +20844,7 @@ static void Stop_Uncore_AMD_Family_17h(void *arg)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_FREQ
|
#ifdef CONFIG_CPU_FREQ
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0)
|
||||||
static int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
|
static int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu)
|
||||||
{
|
{
|
||||||
struct cpufreq_policy *cpu_policy __free(put_cpufreq_policy);
|
struct cpufreq_policy *cpu_policy __free(put_cpufreq_policy);
|
||||||
|
Reference in New Issue
Block a user