From: Dietmar Eggemann Date: Fri, 17 Mar 2017 19:09:03 +0000 (+0000) Subject: sched/autogroup: Define autogroup_path() for !CONFIG_SCHED_DEBUG X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b853922613c59f68c5c0a8d25f09e1897ce841ce;p=platform%2Fkernel%2Flinux-exynos.git sched/autogroup: Define autogroup_path() for !CONFIG_SCHED_DEBUG Define autogroup_path() even in the !CONFIG_SCHED_DEBUG case. If CONFIG_SCHED_AUTOGROUP is enabled the path of an autogroup has to be available to be printed in the load tracking trace events provided by this patch-stack regardless whether CONFIG_SCHED_DEBUG is set or not. Signed-off-by: Dietmar Eggemann Cc: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Lukasz Luba --- diff --git a/kernel/sched/autogroup.c b/kernel/sched/autogroup.c index a43df5193538..c80a47a161a7 100644 --- a/kernel/sched/autogroup.c +++ b/kernel/sched/autogroup.c @@ -260,7 +260,6 @@ out: } #endif /* CONFIG_PROC_FS */ -#ifdef CONFIG_SCHED_DEBUG int autogroup_path(struct task_group *tg, char *buf, int buflen) { if (!task_group_is_autogroup(tg)) @@ -268,4 +267,3 @@ int autogroup_path(struct task_group *tg, char *buf, int buflen) return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); } -#endif /* CONFIG_SCHED_DEBUG */ diff --git a/kernel/sched/autogroup.h b/kernel/sched/autogroup.h index 27cd22b89824..590184bbdc7f 100644 --- a/kernel/sched/autogroup.h +++ b/kernel/sched/autogroup.h @@ -56,11 +56,9 @@ autogroup_task_group(struct task_struct *p, struct task_group *tg) return tg; } -#ifdef CONFIG_SCHED_DEBUG static inline int autogroup_path(struct task_group *tg, char *buf, int buflen) { return 0; } -#endif #endif /* CONFIG_SCHED_AUTOGROUP */