Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100547
b: refs/heads/master
c: e0eca07
h: refs/heads/master
i:
  100545: 19811b7
  100543: 02d9e3b
v: v3
  • Loading branch information
Steven Rostedt authored and Thomas Gleixner committed May 23, 2008
1 parent aece9f9 commit 256913a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 489f139614596cbc956a06f5e4bb41288e276fe3
refs/heads/master: e0eca07badc023a675a61906020b397da20f07c3
10 changes: 10 additions & 0 deletions trunk/include/asm-powerpc/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ extern void iseries_handle_interrupts(void);
get_paca()->hard_enabled = 0; \
} while(0)

static inline int irqs_disabled_flags(unsigned long flags)
{
return flags == 0;
}

#else

#if defined(CONFIG_BOOKE)
Expand Down Expand Up @@ -113,6 +118,11 @@ static inline void local_irq_save_ptr(unsigned long *flags)
#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 */

/*
Expand Down

0 comments on commit 256913a

Please sign in to comment.