74019224ac
Impact: new timer API Based on an idea from Martin Josefsson with the help of Patrick McHardy and Stephen Hemminger: introduce the mod_timer_pending() API which is a mod_timer() offspring that is an invariant on already removed timers. (regular mod_timer() re-activates non-pending timers.) This is useful for the networking code in that it can allow unserialized mod_timer_pending() timer-forwarding calls, but a single del_timer*() will stop the timer from being reactivated again. Also while at it: - optimize the regular mod_timer() path some more, the timer-stat and a debug check was needlessly duplicated in __mod_timer(). - make the exports come straight after the function, as most other exports in timer.c already did. - eliminate __mod_timer() as an external API, change the users to mod_timer(). The regular mod_timer() code path is not impacted significantly, due to inlining optimizations and due to the simplifications. Based-on-patch-from: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Stephen Hemminger <shemminger@vyatta.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Patrick McHardy <kaber@trash.net> Cc: netdev@vger.kernel.org Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> |
||
---|---|---|
.. | ||
spufs | ||
axon_msi.c | ||
beat_htab.c | ||
beat_hvCall.S | ||
beat_interrupt.c | ||
beat_interrupt.h | ||
beat_iommu.c | ||
beat_smp.c | ||
beat_spu_priv1.c | ||
beat_syscall.h | ||
beat_udbg.c | ||
beat_wrapper.h | ||
beat.c | ||
beat.h | ||
cbe_cpufreq_pervasive.c | ||
cbe_cpufreq_pmi.c | ||
cbe_cpufreq.c | ||
cbe_cpufreq.h | ||
cbe_powerbutton.c | ||
cbe_regs.c | ||
cbe_thermal.c | ||
celleb_pci.c | ||
celleb_pci.h | ||
celleb_scc_epci.c | ||
celleb_scc_pciex.c | ||
celleb_scc_sio.c | ||
celleb_scc_uhc.c | ||
celleb_scc.h | ||
celleb_setup.c | ||
cpufreq_spudemand.c | ||
interrupt.c | ||
interrupt.h | ||
io-workarounds.c | ||
io-workarounds.h | ||
iommu.c | ||
Kconfig | ||
Makefile | ||
pervasive.c | ||
pervasive.h | ||
pmu.c | ||
qpace_setup.c | ||
ras.c | ||
ras.h | ||
setup.c | ||
smp.c | ||
spider-pci.c | ||
spider-pic.c | ||
spu_base.c | ||
spu_callbacks.c | ||
spu_fault.c | ||
spu_manage.c | ||
spu_notify.c | ||
spu_priv1_mmio.c | ||
spu_priv1_mmio.h | ||
spu_syscalls.c |