Skip to content

Commit 4eb71e3

Browse files
cloehlePeter Zijlstra
authored andcommitted
cpufreq/cppc: Use NSEC_PER_MSEC for deadline task
Convert the cppc 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]> Acked-by: Juri Lelli <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6ebf2d0 commit 4eb71e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/cpufreq/cppc_cpufreq.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ static void __init cppc_freq_invariance_init(void)
224224
* Fake (unused) bandwidth; workaround to "fix"
225225
* priority inheritance.
226226
*/
227-
.sched_runtime = 1000000,
228-
.sched_deadline = 10000000,
229-
.sched_period = 10000000,
227+
.sched_runtime = NSEC_PER_MSEC,
228+
.sched_deadline = 10 * NSEC_PER_MSEC,
229+
.sched_period = 10 * NSEC_PER_MSEC,
230230
};
231231
int ret;
232232

0 commit comments

Comments
 (0)