diff options
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 8564a412e7a6..f7f376ea7b17 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -53,6 +53,7 @@ | |||
53 | #include <linux/bootmem.h> | 53 | #include <linux/bootmem.h> |
54 | #include <linux/pci.h> | 54 | #include <linux/pci.h> |
55 | #include <linux/debugfs.h> | 55 | #include <linux/debugfs.h> |
56 | #include <linux/perf_counter.h> | ||
56 | 57 | ||
57 | #include <asm/uaccess.h> | 58 | #include <asm/uaccess.h> |
58 | #include <asm/system.h> | 59 | #include <asm/system.h> |
@@ -137,6 +138,11 @@ notrace void raw_local_irq_restore(unsigned long en) | |||
137 | } | 138 | } |
138 | #endif /* CONFIG_PPC_STD_MMU_64 */ | 139 | #endif /* CONFIG_PPC_STD_MMU_64 */ |
139 | 140 | ||
141 | if (test_perf_counter_pending()) { | ||
142 | clear_perf_counter_pending(); | ||
143 | perf_counter_do_pending(); | ||
144 | } | ||
145 | |||
140 | /* | 146 | /* |
141 | * if (get_paca()->hard_enabled) return; | 147 | * if (get_paca()->hard_enabled) return; |
142 | * But again we need to take care that gcc gets hard_enabled directly | 148 | * But again we need to take care that gcc gets hard_enabled directly |