|
@@ -333,8 +333,7 @@ static long timerfd_ioctl(struct file *file, unsigned int cmd, unsigned long arg
|
|
|
spin_lock_irq(&ctx->wqh.lock);
|
|
spin_lock_irq(&ctx->wqh.lock);
|
|
|
if (!timerfd_canceled(ctx)) {
|
|
if (!timerfd_canceled(ctx)) {
|
|
|
ctx->ticks = ticks;
|
|
ctx->ticks = ticks;
|
|
|
- if (ticks)
|
|
|
|
|
- wake_up_locked(&ctx->wqh);
|
|
|
|
|
|
|
+ wake_up_locked(&ctx->wqh);
|
|
|
} else
|
|
} else
|
|
|
ret = -ECANCELED;
|
|
ret = -ECANCELED;
|
|
|
spin_unlock_irq(&ctx->wqh.lock);
|
|
spin_unlock_irq(&ctx->wqh.lock);
|