x86: decent declarations in perf_counter.c
authorJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Sat, 28 Feb 2009 13:07:49 +0000 (18:37 +0530)
committerIngo Molnar <mingo@elte.hu>
Mon, 2 Mar 2009 10:31:06 +0000 (11:31 +0100)
Impact: cleanup

making decent declrations for struct pmc_x86_ops and
fix checkpatch error:
 ERROR: Macros with complex values should be enclosed in parenthesis

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c

index 266618aa1a032bc86196b85c0fabf9af515f353c..a1f3646a3e8e6fc1bebd373eca2a7ebd99059d95 100644 (file)
@@ -42,12 +42,12 @@ struct cpu_hw_counters {
  * struct pmc_x86_ops - performance counter x86 ops
  */
 struct pmc_x86_ops {
-       u64 (*save_disable_all)         (void);
-       void (*restore_all)             (u64 ctrl);
-       unsigned eventsel;
-       unsigned perfctr;
-       int (*event_map)                (int event);
-       int max_events;
+       u64             (*save_disable_all)(void);
+       void            (*restore_all)(u64 ctrl);
+       unsigned        eventsel;
+       unsigned        perfctr;
+       int             (*event_map)(int event);
+       int             max_events;
 };
 
 static struct pmc_x86_ops *pmc_ops;
@@ -561,7 +561,7 @@ perf_handle_group(struct perf_counter *sibling, u64 *status, u64 *overflown)
 /*
  * Maximum interrupt frequency of 100KHz per CPU
  */
-#define PERFMON_MAX_INTERRUPTS 100000/HZ
+#define PERFMON_MAX_INTERRUPTS (100000/HZ)
 
 /*
  * This handler is triggered by the local APIC, so the APIC IRQ handling