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

From: Juan José Arboleda
Date: Wed Jul 31 2024 - 03:56:59 EST


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.

Signed-off-by: Juan José Arboleda <soyjuanarbol@xxxxxxxxx>
---
include/linux/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index f8d150343d42..0f48c96210a4 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -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>
--
2.45.2