Skip to content

Commit

Permalink
[S390] perf_counter build fix
Browse files Browse the repository at this point in the history
Add PERF_COUNTER_INDEX_OFFSET define to fix this build bug:

kernel/perf_counter.c: In function 'perf_counter_index':
kernel/perf_counter.c:1889: error: 'PERF_COUNTER_INDEX_OFFSET' undeclared

Same fix as for FRV since s390 doesn't support hw counters.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jul 7, 2009
1 parent 8108881 commit 2651fa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/s390/include/asm/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@

static inline void set_perf_counter_pending(void) {}
static inline void clear_perf_counter_pending(void) {}

#define PERF_COUNTER_INDEX_OFFSET 0

0 comments on commit 2651fa2

Please sign in to comment.