From c7462cfec1780388e7450dbf6c9303e57ce6237a Mon Sep 17 00:00:00 2001 From: Yihao Wu Date: Mon, 29 Jun 2020 12:57:41 +0800 Subject: [PATCH 1481/2944] alinux: sched: Fix wrong cpuacct_update_latency declaration to #29028845 cpuacct_update_latency's declaration was changed since 6dbaddaa480a, but was not changed for the case when CONFIG_SCHED_SLI=n. This leads to a compilation error. Fixes: 6dbaddaa480a ("alinux: sched: Add cgroup's scheduling latency histograms") Signed-off-by: Yihao Wu Acked-by: Michael Wang --- kernel/sched/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 36b5407..83a296282 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -2276,7 +2276,7 @@ unsigned long scale_irq_capacity(unsigned long util, unsigned long irq, unsigned void task_ca_update_block(struct task_struct *tsk, u64 runtime); #else 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) { } static inline void task_ca_update_block(struct task_struct *tsk, u64 runtime) { } -- 1.8.3.1