[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20190618165908.15012-1-puranjay12@gmail.com>
Date: Tue, 18 Jun 2019 22:29:08 +0530
From: Puranjay Mohan <puranjay12@...il.com>
To: Shuah Khan <skhan@...uxfoundation.org>
Cc: Puranjay Mohan <puranjay12@...il.com>,
Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org
Subject: [PATCH] Sched: Change type of 'overrun' from int to u64
Callers of hrtimer_forward_now() should save the return value in u64.
function sched_cfs_period_timer() stores
it in variable 'overrun' of type int
change type of overrun from int to u64 to solve the issue.
Signed-off-by: Puranjay Mohan <puranjay12@...il.com>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index f35930f5e528..c6bcae7d4e49 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4896,7 +4896,7 @@ static enum hrtimer_restart sched_cfs_period_timer(struct hrtimer *timer)
struct cfs_bandwidth *cfs_b =
container_of(timer, struct cfs_bandwidth, period_timer);
unsigned long flags;
- int overrun;
+ u64 overrun;
int idle = 0;
int count = 0;
--
2.21.0
Powered by blists - more mailing lists