mirror of
https://github.com/cyring/CoreFreq.git
synced 2025-07-24 04:30:35 +02:00
[AArch64] Build with Redhat RHEL version 9
This commit is contained in:
@@ -3905,7 +3905,8 @@ static int CoreFreqK_FreqDriver_UnInit(void)
|
|||||||
{
|
{
|
||||||
int rc = -EINVAL;
|
int rc = -EINVAL;
|
||||||
#ifdef CONFIG_CPU_FREQ
|
#ifdef CONFIG_CPU_FREQ
|
||||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)) && (!defined(CONFIG_CACHY))
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)) && (!defined(CONFIG_CACHY)) \
|
||||||
|
&& (!defined(RHEL_MAJOR))
|
||||||
rc =
|
rc =
|
||||||
#else
|
#else
|
||||||
rc = 0;
|
rc = 0;
|
||||||
@@ -5357,7 +5358,7 @@ inline void SMBIOS_Decoder(void)
|
|||||||
#endif /* CONFIG_DMI */
|
#endif /* CONFIG_DMI */
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0) || (RHEL_MAJOR >= 9)
|
||||||
static char *CoreFreqK_DevNode(const struct device *dev, umode_t *mode)
|
static char *CoreFreqK_DevNode(const struct device *dev, umode_t *mode)
|
||||||
#else
|
#else
|
||||||
static char *CoreFreqK_DevNode(struct device *dev, umode_t *mode)
|
static char *CoreFreqK_DevNode(struct device *dev, umode_t *mode)
|
||||||
@@ -5501,7 +5502,7 @@ static int CoreFreqK_Create_Device_Level_Up(INIT_ARG *pArg)
|
|||||||
struct device *tmpDev;
|
struct device *tmpDev;
|
||||||
UNUSED(pArg);
|
UNUSED(pArg);
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) || (RHEL_MAJOR >= 9)
|
||||||
CoreFreqK.clsdev = class_create(DRV_DEVNAME);
|
CoreFreqK.clsdev = class_create(DRV_DEVNAME);
|
||||||
#else
|
#else
|
||||||
CoreFreqK.clsdev = class_create(THIS_MODULE, DRV_DEVNAME);
|
CoreFreqK.clsdev = class_create(THIS_MODULE, DRV_DEVNAME);
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define COREFREQ_MAJOR 1
|
#define COREFREQ_MAJOR 1
|
||||||
#define COREFREQ_MINOR 97
|
#define COREFREQ_MINOR 98
|
||||||
#define COREFREQ_REV 2
|
#define COREFREQ_REV 0
|
||||||
|
|
||||||
#if !defined(CORE_COUNT)
|
#if !defined(CORE_COUNT)
|
||||||
#define CORE_COUNT 256
|
#define CORE_COUNT 256
|
||||||
|
Reference in New Issue
Block a user