From d3e994830d35159320d0a98c36aa580410c29609 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sun, 20 Jan 2008 17:18:45 -0800 Subject: [PATCH] [PKT_SCHED] SFQ: timer is deferrable The perturbation timer used for re-keying can be deferred, it doesn't need to be deterministic. Signed-off-by: Stephen Hemminger Acked-by: Paul E. McKenney Signed-off-by: David S. Miller --- net/sched/sch_sfq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index c58fa6efc7..ba3a85e29b 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c @@ -426,7 +426,9 @@ static int sfq_init(struct Qdisc *sch, struct rtattr *opt) struct sfq_sched_data *q = qdisc_priv(sch); int i; - setup_timer(&q->perturb_timer, sfq_perturbation, (unsigned long)sch); + q->perturb_timer.function = sfq_perturbation; + q->perturb_timer.data = (unsigned long)sch;; + init_timer_deferrable(&q->perturb_timer); for (i=0; iht[i] = SFQ_DEPTH; -- 2.39.5