blob: a7023220a39925f99259987aef79abf5cbbc243b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From d2983668300dd2a598e5a7dc40e71ce0678cc270 Mon Sep 17 00:00:00 2001
From: Kyle Gospodnetich <me@kylegospodneti.ch>
Date: Sat, 15 Aug 2026 10:43:41 -0700
Subject: [PATCH] Fix cpuid include on 7.2+ kernels (#53)
---
smu.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/smu.c b/smu.c
index 3636bb6..e6bf768 100755
--- a/smu.c
+++ b/smu.c
@@ -8,6 +8,18 @@
#include <linux/pci.h>
#include <linux/time.h>
+#ifdef __has_include
+#if __has_include(<asm/cpuid/api.h>)
+#include <asm/cpuid/api.h>
+#elif __has_include(<asm/cpuid.h>)
+#include <asm/cpuid.h>
+#else
+#include <asm/processor.h>
+#endif
+#else
+#include <asm/processor.h>
+#endif
+
#include "smu.h"
static struct {
|