Skip to contentSkip to conversation

sched: Replace <asm/processor.h> with <linux/processor.h> in sched.h

PATCH In review Juan José Arboleda 2 participants 2 messages Jul 31, 2024 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: Replace <asm/processor.h> with <linux/processor.h> in sched.h

The sched.h header file currently includes the architecture-specific <asm/processor.h> header. This commit replaces it with the more general <linux/processor.h> header to ensure broader compatibility and to streamline the code.

This change helps in reducing architecture-specific dependencies in scheduler code, making it more portable and easier to maintain.

---
 include/linux/sched.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/sched.h +1 -1
index f8d150343d42..0f48c96210a4 100644
@@ -10,7 +10,7 @@
 #include <uapi/linux/sched.h>
 
 #include <asm/current.h>
-#include <asm/processor.h>
+#include <linux/processor.h>
 #include <linux/thread_info.h>
 #include <linux/preempt.h>
 #include <linux/cpumask_types.h>
Signature · 1 line
2.45.2
Tested-by Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Juan José Arboleda

The sched.h header file currently includes the architecture-specific <asm/processor.h> header. This commit replaces it with the more general <linux/processor.h> header to ensure broader compatibility and to streamline the code.

This change helps in reducing architecture-specific dependencies in scheduler code, making it more portable and easier to maintain.

Build and bootup Tested on ppc64le and x86.