sched/headers: Remove duplicated includes in kernel/sched/sched.h
authorGUO Zihua <guozihua@huawei.com>
Fri, 18 Aug 2023 01:56:33 +0000 (09:56 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 18 Sep 2023 07:41:37 +0000 (09:41 +0200)
Remove duplicated includes of linux/cgroup.h and linux/psi.h. Both of
these includes are included regardless of the config and they are all
protected by ifndef, so no point including them again.

Signed-off-by: GUO Zihua <guozihua@huawei.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230818015633.18370-1-guozihua@huawei.com
kernel/sched/sched.h

index 887468c48ff687114d33c12867d8e878faf71ed5..5f217b1e8f1cd03161b1488f71ccf7e86ed49686 100644 (file)
 
 #include "../workqueue_internal.h"
 
-#ifdef CONFIG_CGROUP_SCHED
-#include <linux/cgroup.h>
-#include <linux/psi.h>
-#endif
-
-#ifdef CONFIG_SCHED_DEBUG
-# include <linux/static_key.h>
-#endif
-
 #ifdef CONFIG_PARAVIRT
 # include <asm/paravirt.h>
 # include <asm/paravirt_api_clock.h>