mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
treewide, timers: Rename from_timer() to timer_container_of()
Move this API to the canonical timer_*() namespace. [ tglx: Redone against pre rc1 ] Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/aB2X0jCKQO56WdMt@gmail.com
This commit is contained in:
committed by
Thomas Gleixner
parent
8630c59e99
commit
41cb08555c
@@ -74,7 +74,7 @@ int lapb_t1timer_running(struct lapb_cb *lapb)
|
||||
|
||||
static void lapb_t2timer_expiry(struct timer_list *t)
|
||||
{
|
||||
struct lapb_cb *lapb = from_timer(lapb, t, t2timer);
|
||||
struct lapb_cb *lapb = timer_container_of(lapb, t, t2timer);
|
||||
|
||||
spin_lock_bh(&lapb->lock);
|
||||
if (timer_pending(&lapb->t2timer)) /* A new timer has been set up */
|
||||
@@ -94,7 +94,7 @@ out:
|
||||
|
||||
static void lapb_t1timer_expiry(struct timer_list *t)
|
||||
{
|
||||
struct lapb_cb *lapb = from_timer(lapb, t, t1timer);
|
||||
struct lapb_cb *lapb = timer_container_of(lapb, t, t1timer);
|
||||
|
||||
spin_lock_bh(&lapb->lock);
|
||||
if (timer_pending(&lapb->t1timer)) /* A new timer has been set up */
|
||||
|
||||
Reference in New Issue
Block a user