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

Juan José Arboleda posted 1 patch 1 year, 4 months ago
include/linux/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] sched: Replace <asm/processor.h> with <linux/processor.h> in sched.h
Posted by Juan José Arboleda 1 year, 4 months ago
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@gmail.com>
---
 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
Re: [PATCH] sched: Replace <asm/processor.h> with <linux/processor.h> in sched.h
Posted by Mukesh Kumar Chaurasiya 1 year, 4 months ago
On Wed, Jul 31, 2024 at 02:56:47AM GMT, Juan José Arboleda wrote:
> 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@gmail.com>

Build and bootup Tested on ppc64le and x86.

Tested-by: Mukesh Kumar Chaurasiya <mchauras@linux.ibm.com>
Reviewed-by: Mukesh Kumar Chaurasiya <mchauras@linux.ibm.com>