Blame view
include/asm-powerpc/pmc.h
1.15 KB
1da177e4c
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
/* * pmc.h * Copyright (C) 2004 David Gibson, IBM Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ |
f7f6f4fea
|
19 20 |
#ifndef _POWERPC_PMC_H #define _POWERPC_PMC_H |
88ced0314
|
21 |
#ifdef __KERNEL__ |
1da177e4c
|
22 23 24 25 |
#include <asm/ptrace.h> typedef void (*perf_irq_t)(struct pt_regs *); |
a31751e04
|
26 |
extern perf_irq_t perf_irq; |
1da177e4c
|
27 28 29 |
int reserve_pmc_hardware(perf_irq_t new_perf_irq); void release_pmc_hardware(void); |
f7f6f4fea
|
30 |
#ifdef CONFIG_PPC64 |
180a33627
|
31 |
void power4_enable_pmcs(void); |
25fc530ee
|
32 |
void pasemi_enable_pmcs(void); |
f7f6f4fea
|
33 |
#endif |
180a33627
|
34 |
|
88ced0314
|
35 |
#endif /* __KERNEL__ */ |
f7f6f4fea
|
36 |
#endif /* _POWERPC_PMC_H */ |