sched: Replace <asm/processor.h> with <linux/processor.h> in sched.h
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
@@ -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
Quoted 9 lines · Juan José Arboleda
The
sched.hheader 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 <[email protected]>
Build and bootup Tested on ppc64le and x86.