mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched/cpufreq: Use USEC_PER_SEC for deadline task
@ 2024-08-06 13:41 Christian Loehle
  2024-08-09  1:24 ` Qais Yousef
  0 siblings, 1 reply; 8+ messages in thread
From: Christian Loehle @ 2024-08-06 13:41 UTC (permalink / raw)
  To: Rafael J. Wysocki, Vincent Guittot, Qais Yousef; +Cc: linux-kernel, linux-pm

Convert the sugov deadline task attributes to use the available
definitions to make them more readable.
No functional change.

Signed-off-by: Christian Loehle <christian.loehle@arm.com>
---
 kernel/sched/cpufreq_schedutil.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c
index eece6244f9d2..012b38a04894 100644
--- a/kernel/sched/cpufreq_schedutil.c
+++ b/kernel/sched/cpufreq_schedutil.c
@@ -654,9 +654,9 @@ static int sugov_kthread_create(struct sugov_policy *sg_policy)
 		 * Fake (unused) bandwidth; workaround to "fix"
 		 * priority inheritance.
 		 */
-		.sched_runtime	=  1000000,
-		.sched_deadline = 10000000,
-		.sched_period	= 10000000,
+		.sched_runtime	= USEC_PER_SEC,
+		.sched_deadline = 10 * USEC_PER_SEC,
+		.sched_period	= 10 * USEC_PER_SEC,
 	};
 	struct cpufreq_policy *policy = sg_policy->policy;
 	int ret;
-- 
2.34.1

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

end of thread, other threads:[~2024-08-13 13:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-06 13:41 [PATCH] sched/cpufreq: Use USEC_PER_SEC for deadline task Christian Loehle
2024-08-09  1:24 ` Qais Yousef
2024-08-09  7:42   ` Juri Lelli
2024-08-13  7:54     ` Vincent Guittot
2024-08-13 10:17       ` Christian Loehle
2024-08-13 13:19         ` Juri Lelli
2024-08-13 13:34           ` Christian Loehle
2024-08-13 13:57             ` Juri Lelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®