Skip to content

Commit

Permalink
[x86_64] Building issue #483 with AlmaLinux aka RHEL-9
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed May 13, 2024
1 parent 2757e2d commit 7aa4aa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x86_64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -23679,7 +23679,8 @@ static int CoreFreqK_Create_Device_Level_Up(INIT_ARG *pArg)
struct device *tmpDev;
UNUSED(pArg);

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) \
|| (defined(RHEL_MAJOR) && (RHEL_MAJOR >= 9))
CoreFreqK.clsdev = class_create(DRV_DEVNAME);
#else
CoreFreqK.clsdev = class_create(THIS_MODULE, DRV_DEVNAME);
Expand Down

0 comments on commit 7aa4aa6

Please sign in to comment.