perf_counter, powerpc, sparc: Fix compilation after perf_counter_overflow() change
authorPaul Mackerras <[email protected]>
Mon, 21 Sep 2009 06:44:32 +0000 (16:44 +1000)
committerIngo Molnar <[email protected]>
Mon, 21 Sep 2009 07:28:40 +0000 (09:28 +0200)
commitcd74c86bdf705f824d494a2bbda393d1d562b40a
tree8af5261bcd84014f6f587eb326b7dd7c203d0966
parenta1792cdacaf5180e04e07811e220c4a3b4a9c33e
perf_counter, powerpc, sparc: Fix compilation after perf_counter_overflow() change

Commit 5622f295 ("x86, perf_counter, bts: Optimize BTS overflow
handling") removed the regs field from struct perf_sample_data and
added a regs parameter to perf_counter_overflow().  This breaks the
build on powerpc (and Sparc) as reported by Sachin Sant:

  arch/powerpc/kernel/perf_counter.c: In function 'record_and_restart':
  arch/powerpc/kernel/perf_counter.c:1165: error: unknown field 'regs' specified in initializer

This adjusts arch/powerpc/kernel/perf_counter.c to correspond with the
new struct perf_sample_data and perf_counter_overflow().

[ v2: also fix Sparc, Markus Metzger <[email protected]> ]

Reported-by: Sachin Sant <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Cc: Markus Metzger <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/powerpc/kernel/perf_counter.c
arch/sparc/kernel/perf_counter.c
include/linux/perf_counter.h