]> git.baikalelectronics.ru Git - kernel.git/commit
timerqueue: Let timerqueue_add/del return information
authorThomas Gleixner <tglx@linutronix.de>
Tue, 14 Apr 2015 21:08:46 +0000 (21:08 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 22 Apr 2015 15:06:49 +0000 (17:06 +0200)
commit324609821a27a057f4197040a41c70008fe3d400
tree3366c764cadbcf525b0d60b55cfede105c41dc5d
parent53d204a6c759975c4fe6354d672266c793f1e0a8
timerqueue: Let timerqueue_add/del return information

The hrtimer code is interested whether the added timer is the first
one to expire and whether the removed timer was the last one in the
tree. The add/del routines have that information already. So we can
return it right away instead of reevaluating it at the call site.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/20150414203501.579063647@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/timerqueue.h
lib/timerqueue.c