sparc64: Add a basic conflict engine in preparation for multi-counter support.
authorDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2009 00:35:20 +0000 (17:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2009 00:35:20 +0000 (17:35 -0700)
commita72a8a5f2ea32074e98803d4b15d0e093c5a9e4d
tree73a2fd48d92a7d4dfeae38cfd80adc99fe8fb5e1
parent1b6b9d62475bdea00b366cb80b0fadba446f176d
sparc64: Add a basic conflict engine in preparation for multi-counter support.

The hardware counter ->event_base state records and encoding of
the "struct perf_event_map" entry used for the event.

We use this to make sure that when we have more than 1 event,
both can be scheduled into the hardware at the same time.

As usual, structure of code is largely cribbed from powerpc.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/perf_event.c