linux-kernel-mentees.lists.linuxfoundation.org archive mirror
 help / color / mirror / Atom feed
* [Linux-kernel-mentees] [PATCH] sched: change type of 'overrun' to u64
@ 2019-10-01  1:04 dwlsalmeida
  2019-10-01  1:04 ` Daniel W. S. Almeida
  0 siblings, 1 reply; 2+ messages in thread
From: dwlsalmeida @ 2019-10-01  1:04 UTC (permalink / raw)


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(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 83ab35e2374f..379577798703 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -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;
 
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index ebaa4e619684..cc4875964352 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -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 (;;) {
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Linux-kernel-mentees] [PATCH] sched: change type of 'overrun' to u64
  2019-10-01  1:04 [Linux-kernel-mentees] [PATCH] sched: change type of 'overrun' to u64 dwlsalmeida
@ 2019-10-01  1:04 ` Daniel W. S. Almeida
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel W. S. Almeida @ 2019-10-01  1:04 UTC (permalink / raw)


From: "Daniel W. S. Almeida" <dwlsalmeida@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(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 83ab35e2374f..379577798703 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -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;
 
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index ebaa4e619684..cc4875964352 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -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 (;;) {
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-01  1:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-01  1:04 [Linux-kernel-mentees] [PATCH] sched: change type of 'overrun' to u64 dwlsalmeida
2019-10-01  1:04 ` Daniel W. S. Almeida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).