summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-11-07 22:29:08 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-07 22:29:08 -0800
commite6db870831157d6e05fbeb8d79ced445f79e72c6 (patch)
tree629e0a21ad8ea7db735bd80b0c9408e7d9c951c5 /include
parent93b6c4955ad30720165f4d7eeac5c42c2fa47f31 (diff)
parentb9b63b0c622a0a1fb4ad6475908910a45b6520b2 (diff)
Merge "sched/hmp: Fix memory leak when task fork fails"
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b1351226b102..f8aa9992a694 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2393,6 +2393,7 @@ struct cpu_cycle_counter_cb {
};
#ifdef CONFIG_SCHED_HMP
+extern void free_task_load_ptrs(struct task_struct *p);
extern int sched_set_window(u64 window_start, unsigned int window_size);
extern unsigned long sched_get_busy(int cpu);
extern void sched_get_cpus_busy(struct sched_load *busy,
@@ -2418,6 +2419,8 @@ extern int sched_set_group_id(struct task_struct *p, unsigned int group_id);
extern unsigned int sched_get_group_id(struct task_struct *p);
#else /* CONFIG_SCHED_HMP */
+static inline void free_task_load_ptrs(struct task_struct *p) { }
+
static inline u64 sched_ktime_clock(void)
{
return 0;