Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

s390/pai: Calculate size of reserved PAI extension control block area

The PAI extension 1 control block area is 512 bytes in total.
It currently contains three address pointer which refer to counter
memory blocks followed by a reserved area.
Calculate the reserved area instead of hardcoding its size. This
makes the code more readable and maintainable.
No functional chance.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Suggested-by: Jan Polensky <japo@linux.ibm.com>
Reviewed-by: Jan Polensky <japo@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

authored by

Thomas Richter and committed by
Heiko Carstens
d17901e8 b60d126c

+1 -1
+1 -1
arch/s390/kernel/perf_pai.c
··· 48 48 u64 header; /* Not used */ 49 49 u64 reserved1; 50 50 u64 acc; /* Addr to analytics counter control block */ 51 - u8 reserved2[488]; 51 + u8 reserved2[PAIE1_CTRBLOCK_SZ - 3 * sizeof(u64)]; 52 52 } __packed; 53 53 54 54 struct pai_map {