diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index d6cc22271ef45cfcfd1a627449093a78801e0356..0018c5e81249e85b423614c35d57cc97cc95307d 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -24,6 +24,8 @@
 #include <linux/vmstat.h>
 #include <linux/rculist.h>
 
+#include <asm/irq_regs.h>
+
 /*
  * Each CPU has a list of per CPU counters:
  */