linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] kernel: sched: fair: Changes data type from int to u64
@ 2019-09-25 17:09 Madhuparna Bhowmik
  0 siblings, 0 replies; only message in thread
From: Madhuparna Bhowmik @ 2019-09-25 17:09 UTC (permalink / raw)
  To: linux-kernel-mentees; +Cc: linux-kernel

This patch changes the data type of variable overrun in the function
sched_cfs_period_timer() from int to u64 as the return type of the
function hrtimer_forward_now() is u64.

Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik04@gmail.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 d4bbf68c3161..7c97e9704ca2 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4929,7 +4929,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.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-25 17:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 17:09 [PATCH 2/2] kernel: sched: fair: Changes data type from int to u64 Madhuparna Bhowmik

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