diff options
author | David S. Miller | 2012-08-17 08:19:32 +0200 |
---|---|---|
committer | David S. Miller | 2012-08-19 08:26:14 +0200 |
commit | 09d053c797f4a559af0647e4283b9b9ec0682d10 (patch) | |
tree | a24ba2d57b40d251ede54f6358f79456bfcb855c /arch/sparc/include/asm/pcr.h | |
parent | sparc64: Add 'reg_num' argument to pcr_ops methods. (diff) | |
download | kernel-qcow2-linux-09d053c797f4a559af0647e4283b9b9ec0682d10.tar.gz kernel-qcow2-linux-09d053c797f4a559af0647e4283b9b9ec0682d10.tar.xz kernel-qcow2-linux-09d053c797f4a559af0647e4283b9b9ec0682d10.zip |
sparc64: Abstract away PIC register accesses.
And, like for the PCR, allow indexing of different PIC register
numbers.
This also removes all of the non-__KERNEL__ bits from asm/perfctr.h,
nothing kernel side should include it any more.
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.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/sparc/include/asm/pcr.h b/arch/sparc/include/asm/pcr.h index 55e23416eefc..d53abf75198f 100644 --- a/arch/sparc/include/asm/pcr.h +++ b/arch/sparc/include/asm/pcr.h @@ -2,8 +2,10 @@ #define __PCR_H struct pcr_ops { - u64 (*read)(unsigned long); - void (*write)(unsigned long, u64); + u64 (*read_pcr)(unsigned long); + void (*write_pcr)(unsigned long, u64); + u64 (*read_pic)(unsigned long); + void (*write_pic)(unsigned long, u64); }; extern const struct pcr_ops *pcr_ops; |