]> Git Repo - J-linux.git/commitdiff
sched/cpufreq: Use NSEC_PER_MSEC for deadline task
authorChristian Loehle <[email protected]>
Tue, 13 Aug 2024 14:43:48 +0000 (15:43 +0100)
committerPeter Zijlstra <[email protected]>
Wed, 11 Sep 2024 09:25:22 +0000 (11:25 +0200)
Convert the sugov deadline task attributes to use the available
definitions to make them more readable.
No functional change.

Signed-off-by: Christian Loehle <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Acked-by: Juri Lelli <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
kernel/sched/cpufreq_schedutil.c

index eece6244f9d2fea301f5523ef1d7d6779f0d4625..43111a515a28e082f3952b72c177a4704999d51f 100644 (file)
@@ -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  = NSEC_PER_MSEC,
+               .sched_deadline = 10 * NSEC_PER_MSEC,
+               .sched_period   = 10 * NSEC_PER_MSEC,
        };
        struct cpufreq_policy *policy = sg_policy->policy;
        int ret;
This page took 0.049491 seconds and 4 git commands to generate.