* Mark Langsdorf <[email protected]> wrote:
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index b4c38bc..683bc65 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -2283,6 +2283,9 @@ static inline unsigned int task_cpu(const struct
> task_struct *p)
> return task_thread_info(p)->cpu;
> }
>
> +extern void set_task_delay(struct task_struct *p, unsigned int delay);
> +++ b/kernel/sched.c
> @@ -1947,6 +1947,11 @@ task_hot(struct task_struct *p, u64 now, struct
> sched_domain *sd)
> return delta < (s64)sysctl_sched_migration_cost;
> }
>
> +void set_task_delay(struct task_struct *p, unsigned int delay)
> +{
> + p->se.vruntime += delay;
> +}
> +EXPORT_SYMBOL(set_task_delay);
vruntime is nice level scaled, so this is broken. Please run this
through the scheduler folks, we can get a facility into an isolated
brach for Avi to pull, but it needs some thought.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html