.. | .. |
---|
578 | 578 | .ops = &noop_qdisc_ops, |
---|
579 | 579 | .q.lock = __SPIN_LOCK_UNLOCKED(noop_qdisc.q.lock), |
---|
580 | 580 | .dev_queue = &noop_netdev_queue, |
---|
581 | | -#ifdef CONFIG_PREEMPT_RT |
---|
582 | | - .running = __SEQLOCK_UNLOCKED(noop_qdisc.running), |
---|
583 | | -#else |
---|
584 | 581 | .running = SEQCNT_ZERO(noop_qdisc.running), |
---|
585 | | -#endif |
---|
586 | 582 | .busylock = __SPIN_LOCK_UNLOCKED(noop_qdisc.busylock), |
---|
587 | 583 | .gso_skb = { |
---|
588 | 584 | .next = (struct sk_buff *)&noop_qdisc.gso_skb, |
---|
.. | .. |
---|
893 | 889 | lockdep_set_class(&sch->seqlock, |
---|
894 | 890 | dev->qdisc_tx_busylock ?: &qdisc_tx_busylock); |
---|
895 | 891 | |
---|
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 |
---|
901 | 892 | seqcount_init(&sch->running); |
---|
902 | 893 | lockdep_set_class(&sch->running, |
---|
903 | 894 | dev->qdisc_running_key ?: &qdisc_running_key); |
---|
904 | | -#endif |
---|
905 | 895 | |
---|
906 | 896 | sch->ops = ops; |
---|
907 | 897 | sch->flags = ops->static_flags; |
---|