mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 09:13:38 +00:00
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 <christian.loehle@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Acked-by: Juri Lelli <juri.lelli@redhat.com> Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20240813144348.1180344-5-christian.loehle@arm.com
This commit is contained in:
parent
4eb71e3b45
commit
bc9057da1a
@ -654,9 +654,9 @@ static int sugov_kthread_create(struct sugov_policy *sg_policy)
|
|||||||
* Fake (unused) bandwidth; workaround to "fix"
|
* Fake (unused) bandwidth; workaround to "fix"
|
||||||
* priority inheritance.
|
* priority inheritance.
|
||||||
*/
|
*/
|
||||||
.sched_runtime = 1000000,
|
.sched_runtime = NSEC_PER_MSEC,
|
||||||
.sched_deadline = 10000000,
|
.sched_deadline = 10 * NSEC_PER_MSEC,
|
||||||
.sched_period = 10000000,
|
.sched_period = 10 * NSEC_PER_MSEC,
|
||||||
};
|
};
|
||||||
struct cpufreq_policy *policy = sg_policy->policy;
|
struct cpufreq_policy *policy = sg_policy->policy;
|
||||||
int ret;
|
int ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user