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>
This commit is contained in:
David S. Miller
2012-08-16 21:16:22 -07:00
parent 8c79bfa511
commit 0bab20ba4c
4 changed files with 22 additions and 19 deletions

View File

@@ -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;