Skip to contentSkip to conversation

sched: change type of 'overrun' to u64

PATCH New dwlsalmeida at gmail.com (Daniel W. S. Almeida) 1 participant 1 message Oct 1, 2019 Scheduler

lore
Share & tools
lore

dwlsalmeida at gmail.com (Daniel W. S. Almeida)

#0 lore raw

PATCH 1/1 sched: change type of 'overrun' to u64

From: "Daniel W. S. Almeida" <dwlsalmeida at gmail.com>

hrtimer_forward_now() return value is now u64, but int was used instead. Now fixed.

Signed-off-by Daniel W. S. Almeida <dwlsalmeida at gmail.com>
---
 kernel/sched/fair.c | 2 +-
 kernel/sched/rt.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
kernel/sched/fair.c +1 -1
index 83ab35e2374f..379577798703 100644
@@ -4913,7 +4913,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;
 
kernel/sched/rt.c +1 -1
index ebaa4e619684..cc4875964352 100644
@@ -19,7 +19,7 @@ static enum hrtimer_restart sched_rt_period_timer(struct hrtimer *timer)
 	struct rt_bandwidth *rt_b =
 		container_of(timer, struct rt_bandwidth, rt_period_timer);
 	int idle = 0;
-	int overrun;
+	u64 overrun;
 
 	raw_spin_lock(&rt_b->rt_runtime_lock);
 	for (;;) {
Signature · 1 line
2.23.0