android_kernel_xiaomi_sm8350/arch/powerpc/platforms
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
..
8xx powerpc: Add support for the MPC852 based mgsuvd board from keymile. 2008-09-16 10:01:30 -05:00
40x powerpc: Introduce ppc_pci_flags accessors 2008-12-16 15:53:16 +11:00
44x powerpc/44x: Warp patches for the new NDFC driver 2009-01-20 08:17:21 -05:00
52xx powerpc/5200: Bugfix for PCI mapping of memory and IMMR 2009-01-29 17:08:41 -07:00
82xx arch/powerpc: Eliminate double sizeof 2009-02-06 10:44:28 -06:00
83xx powerpc/mpc8313erdb: fix kernel panic because mdio device is not probed 2009-01-26 15:35:06 -06:00
85xx powerpc/85xx: Add local_irq_restore in error handling code 2008-12-30 11:35:30 -06:00
86xx powerpc/86xx: Basic GPIO support for GE Fanuc SBC610 2008-12-03 10:47:37 -06:00
512x powerpc/mpc5121: fix NULL test in mpc5121_clk_get utility function. 2009-01-09 15:49:04 -07:00
cell timers: add mod_timer_pending() 2009-02-18 19:26:33 +01:00
chrp powerpc: Introduce ppc_pci_flags accessors 2008-12-16 15:53:16 +11:00
embedded6xx powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
iseries powerpc: Change u64/s64 to a long long integer type 2009-01-13 14:47:59 +11:00
maple powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
pasemi powerpc: Fix cpufreq drivers after cpufreq core changes 2009-01-11 21:32:01 -08:00
powermac powerpc/powermac: Fix occasional SMP boot failure 2009-01-13 14:48:03 +11:00
prep
ps3 powerpc/ps3: Move ps3_mm_add_memory to device_initcall 2009-02-13 16:37:45 +11:00
pseries powerpc: Add missing sparsemem.h include 2009-02-10 14:39:09 +11:00
fsl_uli1575.c powerpc: Fix the ide suspend function in uli1575 2009-01-07 09:18:52 -06:00
Kconfig powerpc/83xx: Move mcu_mpc8349emitx driver out of drivers/i2c/chips/ 2009-01-13 17:46:31 -06:00
Kconfig.cputype powerpc/85xx: Enable SMP support 2008-12-30 11:30:41 -06:00
Makefile powerpc: Remove use of CONFIG_PPC_MERGE 2008-08-04 13:18:17 +10:00