lkml.org 
[lkml]   [2015]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH v8 2/4] sched: Rewrite runnable load and utilization average tracking
On Tue, May 26, 2015 at 06:06:23PM +0200, Vincent Guittot wrote:
> > + sa->util_sum = decay_load(u64(sa->util_sum), periods + 1);
>
> Brackets are missing around u64 to cast util_sum
>

My appology for this, and thank you, Vincent.

Sending the below patch here instead of sending the series.

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 2dd201e..a8fd7b9 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -2584,7 +2584,7 @@ static __always_inline int __update_load_avg(u64 now, int cpu,
delta %= 1024;

sa->load_sum = decay_load(sa->load_sum, periods + 1);
- sa->util_sum = decay_load(u64(sa->util_sum), periods + 1);
+ sa->util_sum = decay_load((u64)(sa->util_sum), periods + 1);

/* Efficiently calculate \sum (1..n_period) 1024*y^i */
contrib = __compute_runnable_contrib(periods);

\
 
 \ /
  Last update: 2015-05-28 08:41    [W:0.041 / U:1.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site