Paul Mackerras
448d64f8f4
perf_counter: powerpc: Use unsigned long for register and constraint values
...
This changes the powerpc perf_counter back-end to use unsigned long
types for hardware register values and for the value/mask pairs used
in checking whether a given set of events fit within the hardware
constraints. This is in preparation for adding support for the PMU
on some 32-bit powerpc processors. On 32-bit processors the hardware
registers are only 32 bits wide, and the PMU structure is generally
simpler, so 32 bits should be ample for expressing the hardware
constraints. On 64-bit processors, unsigned long is 64 bits wide,
so using unsigned long vs. u64 (unsigned long long) makes no actual
difference.
This makes some other very minor changes: adjusting whitespace to line
things up in initialized structures, and simplifying some code in
hw_perf_disable().
Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linuxppc-dev@ozlabs.org
Cc: benh@kernel.crashing.org
LKML-Reference: <19000.55473.26174.331511@cargo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-06-18 11:11:45 +02:00
..
2008-12-21 14:21:16 +11:00
2008-12-21 14:21:16 +11:00
2008-10-07 14:26:18 +11:00
2009-05-21 15:44:26 +10:00
2009-06-12 16:53:38 +10:00
2007-05-11 05:38:25 -04:00
2008-08-20 16:34:57 +10:00
2009-01-13 14:48:02 +11:00
2009-01-08 16:25:10 +11:00
2007-10-03 09:11:56 +10:00
2007-05-11 05:38:25 -04:00
2009-03-24 13:47:32 +11:00
2009-02-14 14:41:29 -05:00
2009-01-28 18:16:50 -06:00
2007-04-24 21:31:49 +10:00
2008-09-15 11:08:35 -07:00
2009-05-21 15:44:21 +10:00
2009-02-23 10:48:56 +11:00
2008-06-30 22:31:00 +10:00
2009-02-23 15:53:03 +11:00
2009-01-13 14:47:59 +11:00
2009-06-09 16:49:18 +10:00
2009-06-09 16:49:18 +10:00
2009-02-23 10:48:56 +11:00
2009-04-06 09:02:57 +02:00
2009-06-09 16:47:37 +10:00
2006-06-30 19:25:36 +02:00
2009-04-07 15:18:59 +10:00
2009-06-02 10:36:53 +10:00
2009-04-26 09:20:38 -07:00
2009-06-12 16:51:41 +10:00
2009-04-26 09:20:38 -07:00
2009-04-26 09:20:38 -07:00
2009-06-09 16:47:37 +10:00
2009-06-09 13:29:25 +10:00
2009-04-26 09:20:38 -07:00
2008-12-16 15:53:38 +11:00
2008-09-03 20:53:47 +10:00
2008-09-03 20:53:47 +10:00
2007-05-07 20:31:13 +10:00
2008-11-20 10:51:15 -08:00
2009-06-16 19:47:28 -07:00
2008-05-23 22:43:11 +02:00
2007-09-20 07:36:52 -05:00
2009-01-13 14:47:59 +11:00
2009-06-12 16:53:38 +10:00
2008-05-09 20:22:59 +10:00
2008-09-26 10:36:41 -05:00
2009-01-07 11:31:52 -08:00
2007-10-19 23:21:04 +02:00
2008-07-28 16:30:53 +10:00
2009-06-02 10:36:10 +10:00
2008-08-15 08:35:42 -07:00
2008-12-23 15:13:29 +11:00
2009-05-15 16:43:41 +10:00
2009-06-18 11:11:44 +02:00
2008-12-29 09:53:25 +11:00
2009-06-09 16:46:25 +10:00
2008-09-15 11:08:35 -07:00
2008-11-20 10:52:53 -08:00
2009-02-23 10:48:56 +11:00
2009-06-12 21:47:05 +09:30
2009-03-25 08:54:29 -07:00
2007-08-17 11:01:52 +10:00
2008-12-16 15:53:38 +11:00
2009-04-07 08:31:11 -07:00
2009-06-09 16:47:38 +10:00
2009-05-21 15:44:24 +10:00
2009-06-09 16:47:41 +10:00
2009-05-21 15:44:24 +10:00
2009-06-02 11:09:12 +10:00
2009-06-18 11:11:45 +02:00
2008-02-05 23:34:14 -06:00
2009-06-18 11:11:45 +02:00
2009-06-18 11:11:45 +02:00
2009-06-18 11:11:45 +02:00
2009-06-18 11:11:45 +02:00
2009-06-18 11:11:45 +02:00
2008-07-01 11:28:50 +10:00
2009-06-18 11:11:45 +02:00
2009-01-08 16:25:17 +11:00
2008-12-23 15:13:28 +11:00
2008-04-29 08:06:22 -07:00
2009-06-09 16:47:38 +10:00
2009-03-11 17:11:33 +11:00
2009-06-16 19:47:57 -07:00
2009-04-20 12:18:43 -06:00
2009-06-09 16:47:38 +10:00
2009-04-07 15:19:00 +10:00
2009-06-09 13:29:25 +10:00
2008-09-15 11:08:38 -07:00
2009-03-31 01:14:44 +04:00
2009-05-21 15:44:23 +10:00
2008-05-14 22:31:59 +10:00
2006-06-09 21:21:06 +10:00
2009-02-23 15:53:04 +11:00
2009-06-09 16:49:18 +10:00
2009-06-15 13:26:21 +10:00
2009-04-07 15:18:58 +10:00
2006-05-19 15:02:12 +10:00
2009-03-27 16:58:24 +11:00
2009-03-27 16:58:24 +11:00
2009-03-27 16:58:24 +11:00
2009-03-27 16:58:24 +11:00
2008-11-05 22:08:28 +11:00
2009-01-02 11:44:09 -08:00
2008-09-06 19:30:24 +01:00
2008-07-28 16:30:47 +10:00
2008-07-24 10:47:21 -07:00
2008-12-21 14:21:16 +11:00
2007-05-07 20:31:14 +10:00
2008-10-07 14:26:20 +11:00
2008-12-21 14:21:15 +11:00
2008-10-16 11:21:33 -07:00
2008-07-09 16:30:45 +10:00
2009-03-27 16:58:24 +11:00
2008-01-25 22:52:50 +11:00
2008-01-25 22:52:50 +11:00
2007-10-11 14:36:47 +10:00
2008-06-26 11:24:38 +02:00
2009-06-18 11:11:44 +02:00
2009-06-09 13:29:25 +10:00
2009-03-11 17:11:34 +11:00
2009-03-11 17:11:34 +11:00
2008-12-28 16:54:33 -08:00
2005-09-21 19:21:07 +10:00
2009-06-09 16:46:25 +10:00
2009-04-02 19:04:50 -07:00
2009-05-18 15:19:05 +10:00