summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/pcr.h
diff options
context:
space:
mode:
authorDavid S. Miller2012-08-17 06:16:22 +0200
committerDavid S. Miller2012-08-19 08:04:08 +0200
commit0bab20ba4c95f56355c24a0b9f03eb486c2a267d (patch)
tree906d0ca27a6c62ea01b55e24f7a4c3a7e76a723e /arch/sparc/include/asm/pcr.h
parentsparc64: Add hypervisor interfaces for SPARC-T4 perf counter access. (diff)
downloadkernel-qcow2-linux-0bab20ba4c95f56355c24a0b9f03eb486c2a267d.tar.gz
kernel-qcow2-linux-0bab20ba4c95f56355c24a0b9f03eb486c2a267d.tar.xz
kernel-qcow2-linux-0bab20ba4c95f56355c24a0b9f03eb486c2a267d.zip
sparc64: Add 'reg_num' argument to pcr_ops methods.
SPARC-T4 and later have multiple PCR registers, one for each PIC counter. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/pcr.h')
-rw-r--r--arch/sparc/include/asm/pcr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/include/asm/pcr.h b/arch/sparc/include/asm/pcr.h
index 288d7beba051..55e23416eefc 100644
--- a/arch/sparc/include/asm/pcr.h
+++ b/arch/sparc/include/asm/pcr.h
@@ -2,8 +2,8 @@
#define __PCR_H
struct pcr_ops {
- u64 (*read)(void);
- void (*write)(u64);
+ u64 (*read)(unsigned long);
+ void (*write)(unsigned long, u64);
};
extern const struct pcr_ops *pcr_ops;