dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/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 [POWERPC] spufs: add .gitignore for spu_save_dump.h & spu_restore_dump.h 2008-04-30 16:29:30 +10:00
Makefile
backing_ops.c
context.c powerpc/spufs: avoid magic numbers for mapping sizes 2008-07-09 10:13:40 +10:00
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
run.c powerpc/spufs: Use state_mutex for switch_log locking, and prevent multiple openers 2008-10-21 11:13:19 +11:00
sched.c timers: add mod_timer_pending() 2009-02-18 19:26:33 +01:00
spu_restore.c
spu_restore_crt0.S
spu_restore_dump.h_shipped
spu_save.c
spu_save_crt0.S
spu_save_dump.h_shipped
spu_utils.h
spufs.h fix similar typos to successfull 2009-01-08 08:31:15 -08:00
sputrace.c Merge commit 'origin' into master 2008-10-21 15:52:04 +11:00
switch.c [POWERPC] spufs: handle faults while the context switch pending flag is set 2008-05-05 13:33:44 +10:00
syscalls.c [PATCH] don't pass bogus flags to LOOKUP_PARENT lookup in spufs 2008-10-23 05:12:55 -04:00