From: Steven Rostedt <rostedt@goodmis•org>
To: Ingo Molnar <mingo@elte•hu>
Cc: proski@gnu•org, a.p.zijlstra@chello•nl, pq@iki•fi,
linux-kernel@vger•kernel.org,
Steven Rostedt <srostedt@redhat•com>,
linuxppc-dev@ozlabs•org, sandmann@redhat•com, paulus@samba•org
Subject: [PATCH 1/2] ftrace ppc: add irqs_disabled_flags to ppc
Date: Wed, 14 May 2008 23:49:43 -0400 [thread overview]
Message-ID: <20080515035918.745026737@goodmis.org> (raw)
In-Reply-To: 20080515034942.109223655@goodmis.org
PPC doesn't have the irqs_disabled_flags needed by ftrace.
This patch adds it.
Signed-off-by: Steven Rostedt <srostedt@redhat•com>
---
include/asm-powerpc/hw_irq.h | 10 ++++++++++
1 file changed, 10 insertions(+)
Index: linux-sched-devel.git/include/asm-powerpc/hw_irq.h
===================================================================
--- linux-sched-devel.git.orig/include/asm-powerpc/hw_irq.h 2008-05-14 18:12:21.000000000 -0700
+++ linux-sched-devel.git/include/asm-powerpc/hw_irq.h 2008-05-14 19:24:59.000000000 -0700
@@ -59,6 +59,11 @@ extern void iseries_handle_interrupts(vo
get_paca()->hard_enabled = 0; \
} while(0)
+static inline int irqs_disabled_flags(unsigned long flags)
+{
+ return flags == 0;
+}
+
#else
#if defined(CONFIG_BOOKE)
@@ -113,6 +118,11 @@ static inline void local_irq_save_ptr(un
#define hard_irq_enable() local_irq_enable()
#define hard_irq_disable() local_irq_disable()
+static inline int irqs_disabled_flags(unsigned long flags)
+{
+ return (flags & MSR_EE) == 0;
+}
+
#endif /* CONFIG_PPC64 */
/*
--
next prev parent reply other threads:[~2008-05-15 4:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-15 3:49 [PATCH 0/2] ftrace ported to PPC Steven Rostedt
2008-05-15 3:49 ` Steven Rostedt [this message]
2008-05-16 12:05 ` [PATCH 1/2] ftrace ppc: add irqs_disabled_flags to ppc Ingo Molnar
2008-05-15 3:49 ` [PATCH 2/2] ftrace: support for PowerPC Steven Rostedt
2008-05-15 5:28 ` David Miller
2008-05-15 13:38 ` Steven Rostedt
2008-05-15 16:48 ` Scott Wood
2008-05-16 12:06 ` Ingo Molnar
2008-05-20 14:04 ` Michael Ellerman
2008-05-20 14:17 ` Benjamin Herrenschmidt
2008-05-20 14:51 ` Steven Rostedt
2008-05-20 14:32 ` Steven Rostedt
2008-05-22 18:31 ` [PATCH] ftrace: powerpc clean ups Steven Rostedt
2008-05-27 15:36 ` Thomas Gleixner
2008-06-02 2:15 ` Michael Ellerman
2008-05-15 4:40 ` [PATCH 0/2] ftrace ported to PPC Paul Mackerras
2008-05-16 12:05 ` Ingo Molnar
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=20080515035918.745026737@goodmis.org \
--to=rostedt@goodmis$(echo .)org \
--cc=a.p.zijlstra@chello$(echo .)nl \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=mingo@elte$(echo .)hu \
--cc=paulus@samba$(echo .)org \
--cc=pq@iki$(echo .)fi \
--cc=proski@gnu$(echo .)org \
--cc=sandmann@redhat$(echo .)com \
--cc=srostedt@redhat$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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