public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* preempt.h: some SOFTIRQ_OFFSET should be SOFTIRQ_MASK?
@ 2019-02-05 18:34 Denys Vlasenko
  2019-02-13  4:05 ` Frederic Weisbecker
  0 siblings, 1 reply; 3+ messages in thread
From: Denys Vlasenko @ 2019-02-05 18:34 UTC (permalink / raw)
  To: Frederic Weisbecker, Linux Kernel Mailing List

SOFTIRQ is a counter.
Why here:

#define in_serving_softirq()    (softirq_count() & SOFTIRQ_OFFSET)
#define in_task()               (!(preempt_count() & \
                                   (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_OFFSET)))

we check only lowest bit?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-13 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-05 18:34 preempt.h: some SOFTIRQ_OFFSET should be SOFTIRQ_MASK? Denys Vlasenko
2019-02-13  4:05 ` Frederic Weisbecker
2019-02-13 10:37   ` Denys Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox