aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorGUO Zihua <guozihua@huawei.com>2023-08-18 09:56:33 +0800
committerIngo Molnar <mingo@kernel.org>2023-09-18 09:41:37 +0200
commit7ad0354d18ae05e9c8885251e234cbcf141f8972 (patch)
tree0d4baa00c411958784754e52f48f4279b2b7a450 /kernel/sched/sched.h
parentsched/fair: Ratelimit update to tg->load_avg (diff)
downloadwireguard-linux-7ad0354d18ae05e9c8885251e234cbcf141f8972.tar.xz
wireguard-linux-7ad0354d18ae05e9c8885251e234cbcf141f8972.zip
sched/headers: Remove duplicated includes in kernel/sched/sched.h
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
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 887468c48ff6..5f217b1e8f1c 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -74,15 +74,6 @@
#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>