hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/net/sched/sch_generic.c
....@@ -578,11 +578,7 @@
578578 .ops = &noop_qdisc_ops,
579579 .q.lock = __SPIN_LOCK_UNLOCKED(noop_qdisc.q.lock),
580580 .dev_queue = &noop_netdev_queue,
581
-#ifdef CONFIG_PREEMPT_RT
582
- .running = __SEQLOCK_UNLOCKED(noop_qdisc.running),
583
-#else
584581 .running = SEQCNT_ZERO(noop_qdisc.running),
585
-#endif
586582 .busylock = __SPIN_LOCK_UNLOCKED(noop_qdisc.busylock),
587583 .gso_skb = {
588584 .next = (struct sk_buff *)&noop_qdisc.gso_skb,
....@@ -893,15 +889,9 @@
893889 lockdep_set_class(&sch->seqlock,
894890 dev->qdisc_tx_busylock ?: &qdisc_tx_busylock);
895891
896
-#ifdef CONFIG_PREEMPT_RT
897
- seqlock_init(&sch->running);
898
- lockdep_set_class(&sch->running.lock,
899
- dev->qdisc_running_key ?: &qdisc_running_key);
900
-#else
901892 seqcount_init(&sch->running);
902893 lockdep_set_class(&sch->running,
903894 dev->qdisc_running_key ?: &qdisc_running_key);
904
-#endif
905895
906896 sch->ops = ops;
907897 sch->flags = ops->static_flags;