diff mbox series

[3/4] cpufreq/cppc: Use NSEC_PER_MSEC for deadline task

Message ID 20240813144348.1180344-4-christian.loehle@arm.com
State New
Headers show
Series sched/deadline: nanoseconds clarifications | expand

Commit Message

Christian Loehle Aug. 13, 2024, 2:43 p.m. UTC
Convert the cppc 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>
---
 drivers/cpufreq/cppc_cpufreq.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
index bafa32dd375d..aff25b598ec4 100644
--- a/drivers/cpufreq/cppc_cpufreq.c
+++ b/drivers/cpufreq/cppc_cpufreq.c
@@ -224,9 +224,9 @@  static void __init cppc_freq_invariance_init(void)
 		 * Fake (unused) bandwidth; workaround to "fix"
 		 * priority inheritance.
 		 */
-		.sched_runtime	= 1000000,
-		.sched_deadline = 10000000,
-		.sched_period	= 10000000,
+		.sched_runtime	= NSER_PER_MSEC,
+		.sched_deadline = 10 * NSEC_PER_MSEC
+		.sched_period	= 10 * NSEC_PER_MSEC,
 	};
 	int ret;