/* w(c, s1) = -1 w(c, s2) = 0 w(c, s3) = 1  */
static int wakeup_preempt_entity(struct sched_entity *curr, struct sched_entity *se)
/* w(c, s1) = -1 w(c, s2) = 0 w(c, s3) = 1  */
static int wakeup_preempt_entity(struct sched_entity *curr, struct sched_entity *se)
{
	s64 gran, vdiff = curr->vruntime - se->vruntime;
	if (vdiff <= 0)
		return -1;
	gran = wakeup_gran(curr, se);
	if (vdiff > gran)
		return 1;
	return 0;
}