mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08: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
@@ -1335,28 +1335,31 @@ static void llc_conn_tmr_common_cb(struct sock *sk, u8 type)
|
||||
|
||||
void llc_conn_pf_cycle_tmr_cb(struct timer_list *t)
|
||||
{
|
||||
struct llc_sock *llc = from_timer(llc, t, pf_cycle_timer.timer);
|
||||
struct llc_sock *llc = timer_container_of(llc, t,
|
||||
pf_cycle_timer.timer);
|
||||
|
||||
llc_conn_tmr_common_cb(&llc->sk, LLC_CONN_EV_TYPE_P_TMR);
|
||||
}
|
||||
|
||||
void llc_conn_busy_tmr_cb(struct timer_list *t)
|
||||
{
|
||||
struct llc_sock *llc = from_timer(llc, t, busy_state_timer.timer);
|
||||
struct llc_sock *llc = timer_container_of(llc, t,
|
||||
busy_state_timer.timer);
|
||||
|
||||
llc_conn_tmr_common_cb(&llc->sk, LLC_CONN_EV_TYPE_BUSY_TMR);
|
||||
}
|
||||
|
||||
void llc_conn_ack_tmr_cb(struct timer_list *t)
|
||||
{
|
||||
struct llc_sock *llc = from_timer(llc, t, ack_timer.timer);
|
||||
struct llc_sock *llc = timer_container_of(llc, t, ack_timer.timer);
|
||||
|
||||
llc_conn_tmr_common_cb(&llc->sk, LLC_CONN_EV_TYPE_ACK_TMR);
|
||||
}
|
||||
|
||||
void llc_conn_rej_tmr_cb(struct timer_list *t)
|
||||
{
|
||||
struct llc_sock *llc = from_timer(llc, t, rej_sent_timer.timer);
|
||||
struct llc_sock *llc = timer_container_of(llc, t,
|
||||
rej_sent_timer.timer);
|
||||
|
||||
llc_conn_tmr_common_cb(&llc->sk, LLC_CONN_EV_TYPE_REJ_TMR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user