android_kernel_xiaomi_sm8350/arch/powerpc/platforms/cell/spufs
Ingo Molnar 74019224ac timers: add mod_timer_pending()
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>
2009-02-18 19:26:33 +01:00
..
.gitignore
backing_ops.c
context.c
coredump.c powerpc: Cleanup from l64 to ll64 change: arch code 2009-01-13 14:47:59 +11:00
fault.c powerpc: Cleanup from l64 to ll64 change: arch code 2009-01-13 14:47:59 +11:00
file.c powerpc: Cleanup from l64 to ll64 change: arch code 2009-01-13 14:47:59 +11:00
gang.c
hw_ops.c
inode.c zero i_uid/i_gid on inode allocation 2009-01-05 11:54:28 -05:00
lscsa_alloc.c
Makefile
run.c
sched.c timers: add mod_timer_pending() 2009-02-18 19:26:33 +01:00
spu_restore_crt0.S
spu_restore_dump.h_shipped
spu_restore.c
spu_save_crt0.S
spu_save_dump.h_shipped
spu_save.c
spu_utils.h
spufs.h fix similar typos to successfull 2009-01-08 08:31:15 -08:00
sputrace.c
switch.c
syscalls.c