Skip to content

Commit

Permalink
perf_counter: include missing header
Browse files Browse the repository at this point in the history
Impact: build fix

In order to compile a kernel with performance counter patches,
<asm/irq_regs.h> has to be included to provide the declaration of
struct pt_regs *get_irq_regs(void);

[ This bug was masked by unrelated x86 header file changes in the
  x86 tree, but occurs in the tip:perfcounters/core standalone
  tree. ]

Signed-off-by: Tim Blechmann <tim@klingt.org>
Orig-LKML-Reference: <20090314142925.49c29c17@thinkpad>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Tim Blechmann authored and Ingo Molnar committed Apr 6, 2009
1 parent 039fc91 commit 4e193bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
*/
Expand Down

0 comments on commit 4e193bd

Please sign in to comment.