]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cpum_sf: Add helper to read TOD from trailer entries
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Thu, 12 Dec 2013 16:38:50 +0000 (17:38 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:37:58 +0000 (14:37 +0100)
commit6065d90d47e5671c6b4045eb2dcfa9e9adbef2c9
treef11cddd99fb9c8dced567a2577c43a271d6a29ac
parent7b5c0a5421a853797673490e3fcd36bbe6f0ef40
s390/cpum_sf: Add helper to read TOD from trailer entries

The trailer entry contains a timestamp of the time when the sample-data-block
became full.  The timestamp specifies a TOD (time-of-day) value in either the
STCK or STCKE format.

Provide a helper function to return the TOD value depending on the setting of
time format indicator.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/cpu_mf.h
arch/s390/kernel/perf_cpum_sf.c