aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2015-04-10 08:33:08 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-04-15 06:23:52 -0400
commit6001018ae8c659e624351d2e73b1272bacd68d6a (patch)
tree5a489e3a6a65ca05d1b15a27c4f425f8181ca807 /arch/s390/include
parentdf3044f1ef002c2269b11cb76a1b2bec629732b4 (diff)
s390/pci: extract software counters from fmb
The software counters are not a part of the function measurement block. Also we do not check for zdev->fmb != NULL when using these counters (function measurement can be toggled at runtime). Just move the software counters to struct zpci_dev. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r--arch/s390/include/asm/pci.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h
index ef803c202d42..d318e38dcb83 100644
--- a/arch/s390/include/asm/pci.h
+++ b/arch/s390/include/asm/pci.h
@@ -44,10 +44,6 @@ struct zpci_fmb {
44 u64 rpcit_ops; 44 u64 rpcit_ops;
45 u64 dma_rbytes; 45 u64 dma_rbytes;
46 u64 dma_wbytes; 46 u64 dma_wbytes;
47 /* software counters */
48 atomic64_t allocated_pages;
49 atomic64_t mapped_pages;
50 atomic64_t unmapped_pages;
51} __packed __aligned(16); 47} __packed __aligned(16);
52 48
53enum zpci_state { 49enum zpci_state {
@@ -111,6 +107,10 @@ struct zpci_dev {
111 /* Function measurement block */ 107 /* Function measurement block */
112 struct zpci_fmb *fmb; 108 struct zpci_fmb *fmb;
113 u16 fmb_update; /* update interval */ 109 u16 fmb_update; /* update interval */
110 /* software counters */
111 atomic64_t allocated_pages;
112 atomic64_t mapped_pages;
113 atomic64_t unmapped_pages;
114 114
115 enum pci_bus_speed max_bus_speed; 115 enum pci_bus_speed max_bus_speed;
116 116