Skip to content

Commit bc9057d

Browse files
cloehlePeter Zijlstra
authored andcommitted
sched/cpufreq: Use NSEC_PER_MSEC for deadline task
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]
1 parent 4eb71e3 commit bc9057d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/sched/cpufreq_schedutil.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,9 @@ static int sugov_kthread_create(struct sugov_policy *sg_policy)
654654
* Fake (unused) bandwidth; workaround to "fix"
655655
* priority inheritance.
656656
*/
657-
.sched_runtime = 1000000,
658-
.sched_deadline = 10000000,
659-
.sched_period = 10000000,
657+
.sched_runtime = NSEC_PER_MSEC,
658+
.sched_deadline = 10 * NSEC_PER_MSEC,
659+
.sched_period = 10 * NSEC_PER_MSEC,
660660
};
661661
struct cpufreq_policy *policy = sg_policy->policy;
662662
int ret;

0 commit comments

Comments
 (0)