The following commit has been merged into the sched/core branch of tip: Commit-ID: b3a47ff095544af206b8885391a7bad662d06a57 Gitweb: https://git.kernel.org/tip/b3a47ff095544af206b8885391a7bad662d06a57 Author: Christian Loehle <christian.loehle@xxxxxxx> AuthorDate: Tue, 13 Aug 2024 15:43:47 +01:00 Committer: Peter Zijlstra <peterz@xxxxxxxxxxxxx> CommitterDate: Tue, 10 Sep 2024 09:51:16 +02:00 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 <christian.loehle@xxxxxxx> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> Acked-by: Juri Lelli <juri.lelli@xxxxxxxxxx> Acked-by: Rafael J. Wysocki <rafael@xxxxxxxxxx> Link: https://lore.kernel.org/r/20240813144348.1180344-4-christian.loehle@xxxxxxx --- drivers/cpufreq/cppc_cpufreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index bafa32d..aff25b5 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;