x86: decent declarations in perf_counter.c

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>
This commit is contained in:
Jaswinder Singh Rajput 2009-02-28 18:37:49 +05:30 committed by Ingo Molnar
parent f87ad35d37
commit 169e41eb7f
1 changed files with 7 additions and 7 deletions

View File

@ -42,11 +42,11 @@ 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);
u64 (*save_disable_all)(void);
void (*restore_all)(u64 ctrl);
unsigned eventsel;
unsigned perfctr;
int (*event_map) (int event);
int (*event_map)(int event);
int max_events;
};
@ -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