diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2018-03-28 15:27:56 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-03-28 15:27:56 -0700 |
| commit | 905fb0364359cd18488bb49c297e2cf852c17e7c (patch) | |
| tree | 89f40340d473ff03a7f5321e830a07bf9d84c7bc /include/linux | |
| parent | cce73b6eb4ffee61460fea83a7329673c1c8a3c8 (diff) | |
| parent | 88f4823be31a48d8cb1ce5c26e6ccb506f95ed0b (diff) | |
Merge "sched: Export wake_to_idle API"
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index fcfed59cedc4..000b0f02ce37 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -184,6 +184,22 @@ extern void sched_get_nr_running_avg(int *avg, int *iowait_avg, int *big_avg, unsigned int *big_max_nr); extern u64 sched_get_cpu_last_busy_time(int cpu); +#ifdef CONFIG_SMP +extern u32 sched_get_wake_up_idle(struct task_struct *p); +extern int sched_set_wake_up_idle(struct task_struct *p, int wake_up_idle); +#else +static inline u32 sched_get_wake_up_idle(struct task_struct *p) +{ + return 0; +} + +static inline int sched_set_wake_up_idle(struct task_struct *p, + int wake_up_idle) +{ + return 0; +} +#endif /* CONFIG_SMP */ + extern void calc_global_load(unsigned long ticks); #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON) @@ -2547,9 +2563,6 @@ struct sched_load { unsigned long predicted_load; }; -extern int sched_set_wake_up_idle(struct task_struct *p, int wake_up_idle); -extern u32 sched_get_wake_up_idle(struct task_struct *p); - struct cpu_cycle_counter_cb { u64 (*get_cpu_cycle_counter)(int cpu); }; |
