From: Ian Wienand <ianw@gelato.unsw.edu.au>
To: linux-ia64@vger.kernel.org
Subject: hardirq.h should include smp_lock.h when preempt enabled
Date: Fri, 08 Aug 2003 03:04:29 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106031197330473@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 116 bytes --]
As in_atomic() uses kernel_locked() which is in smp_lock.h
-i
ianw@gelato.unsw.edu.au
http://www.gelato.unsw.edu.au
[-- Attachment #2: hardirq.h.patch --]
[-- Type: text/plain, Size: 407 bytes --]
===== hardirq.h 1.13 vs edited =====
--- 1.13/include/asm-ia64/hardirq.h Thu Jun 12 12:53:38 2003
+++ edited/hardirq.h Fri Aug 8 13:00:23 2003
@@ -89,6 +89,7 @@
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
#ifdef CONFIG_PREEMPT
+# include <linux/smp_lock.h>
# define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
reply other threads:[~2003-08-08 3:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-106031197330473@msgid-missing \
--to=ianw@gelato.unsw.edu.au \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox