diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-07-04 05:50:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-07-07 04:35:09 -0400 |
commit | 53bf837b78d155b8e1110b3c25b4d0d6391b8ff3 (patch) | |
tree | 544f2514202481290a1d67f389f26660c482e409 /kernel/time/timer.c | |
parent | 500462a9de657f86edaa102f8ab6bff7f7e43fc2 (diff) |
timers: Remove set_timer_slack() leftovers
We now have implicit batching in the timer wheel. The slack API is no longer
used, so remove it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Andrew F. Davis <afd@ti.com>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Chris Mason <clm@fb.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: George Spelvin <linux@sciencehorizons.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Len Brown <lenb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mathias Nyman <mathias.nyman@intel.com>
Cc: Pali Rohár <pali.rohar@gmail.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-block@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mmc@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160704094342.189813118@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/time/timer.c')
-rw-r--r-- | kernel/time/timer.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 86e95b72665d..a83e23d0bc25 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c | |||
@@ -447,24 +447,6 @@ unsigned long round_jiffies_up_relative(unsigned long j) | |||
447 | } | 447 | } |
448 | EXPORT_SYMBOL_GPL(round_jiffies_up_relative); | 448 | EXPORT_SYMBOL_GPL(round_jiffies_up_relative); |
449 | 449 | ||
450 | /** | ||
451 | * set_timer_slack - set the allowed slack for a timer | ||
452 | * @timer: the timer to be modified | ||
453 | * @slack_hz: the amount of time (in jiffies) allowed for rounding | ||
454 | * | ||
455 | * Set the amount of time, in jiffies, that a certain timer has | ||
456 | * in terms of slack. By setting this value, the timer subsystem | ||
457 | * will schedule the actual timer somewhere between | ||
458 | * the time mod_timer() asks for, and that time plus the slack. | ||
459 | * | ||
460 | * By setting the slack to -1, a percentage of the delay is used | ||
461 | * instead. | ||
462 | */ | ||
463 | void set_timer_slack(struct timer_list *timer, int slack_hz) | ||
464 | { | ||
465 | timer->slack = slack_hz; | ||
466 | } | ||
467 | EXPORT_SYMBOL_GPL(set_timer_slack); | ||
468 | 450 | ||
469 | static inline unsigned int timer_get_idx(struct timer_list *timer) | 451 | static inline unsigned int timer_get_idx(struct timer_list *timer) |
470 | { | 452 | { |
@@ -775,7 +757,6 @@ static void do_init_timer(struct timer_list *timer, unsigned int flags, | |||
775 | { | 757 | { |
776 | timer->entry.pprev = NULL; | 758 | timer->entry.pprev = NULL; |
777 | timer->flags = flags | raw_smp_processor_id(); | 759 | timer->flags = flags | raw_smp_processor_id(); |
778 | timer->slack = -1; | ||
779 | #ifdef CONFIG_TIMER_STATS | 760 | #ifdef CONFIG_TIMER_STATS |
780 | timer->start_site = NULL; | 761 | timer->start_site = NULL; |
781 | timer->start_pid = -1; | 762 | timer->start_pid = -1; |