summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@gmail.com>2019-04-07 21:15:42 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-17 08:38:50 +0200
commita5277bcc1b7d2d06da310503fc6afc9189ae4875 (patch)
treec08c5929e2a794a294393a879ec97f8050532376 /drivers/gpu
parent5db86e2a9b364b06e8a7b7f4f73f1339cf2436f6 (diff)
alarmtimer: Return correct remaining time
commit 07d7e12091f4ab869cc6a4bb276399057e73b0b3 upstream. To calculate a remaining time, it's required to subtract the current time from the expiration time. In alarm_timer_remaining() the arguments of ktime_sub are swapped. Fixes: d653d8457c76 ("alarmtimer: Implement remaining callback") Signed-off-by: Andrei Vagin <avagin@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Cc: Stephen Boyd <sboyd@kernel.org> Cc: John Stultz <john.stultz@linaro.org> Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20190408041542.26338-1-avagin@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions