提交 c7462cfe 编写于 作者: Y Yihao Wu

alinux: sched: Fix wrong cpuacct_update_latency declaration

to #29028845

cpuacct_update_latency's declaration was changed since 6dbaddaa,
but was not changed for the case when CONFIG_SCHED_SLI=n. This leads
to a compilation error.

Fixes: 6dbaddaa ("alinux: sched: Add cgroup's scheduling latency histograms")
Signed-off-by: NYihao Wu <wuyihao@linux.alibaba.com>
Acked-by: NMichael Wang <yun.wang@linux.alibaba.com>
上级 1d57a672
...@@ -2276,7 +2276,7 @@ void cpuacct_update_latency(struct sched_entity *se, u64 delta); ...@@ -2276,7 +2276,7 @@ void cpuacct_update_latency(struct sched_entity *se, u64 delta);
void task_ca_update_block(struct task_struct *tsk, u64 runtime); void task_ca_update_block(struct task_struct *tsk, u64 runtime);
#else #else
static inline void task_ca_increase_nr_migrations(struct task_struct *tsk) { } static inline void task_ca_increase_nr_migrations(struct task_struct *tsk) { }
static inline void cpuacct_update_latency(struct task_struct *tsk, static inline void cpuacct_update_latency(struct sched_entity *se,
u64 delta) { } u64 delta) { }
static inline void task_ca_update_block(struct task_struct *tsk, static inline void task_ca_update_block(struct task_struct *tsk,
u64 runtime) { } u64 runtime) { }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册