[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK1hOcN8_0MNEFfoHg0sAuu09SPhXHvXfXkeHONtoFXOArjumg@mail.gmail.com>
Date: Tue, 5 Feb 2019 19:34:31 +0100
From: Denys Vlasenko <vda.linux@...glemail.com>
To: Frederic Weisbecker <fweisbec@...il.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: preempt.h: some SOFTIRQ_OFFSET should be SOFTIRQ_MASK?
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?
Powered by blists - more mailing lists