OpenCloudOS-Kernel/drivers/s390
Martin Schwidefsky 8c071b0f19 s390/time: correct use of store clock fast
The result of the store-clock-fast (STCKF) instruction is a bit fuzzy.
It can happen that the value stored on one CPU is smaller than the value
stored on another CPU, although the order of the stores is the other
way around. This can cause deltas of get_tod_clock() values to become
negative when they should not be.

We need to be more careful with store-clock-fast, this patch partially
reverts git commit e4b7b4238e666682555461fa52eecd74652f36bb "time:
always use stckf instead of stck if available". The get_tod_clock()
function now uses the store-clock-extended (STCKE) instruction.
get_tod_clock_fast() can be used if the fuzziness of store-clock-fast
is acceptable e.g. for wait loops local to a CPU.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2013-10-22 09:16:40 +02:00
..
block s390/dasd: check for availability of prefix command during format 2013-10-15 13:47:58 +02:00
char s390/time: correct use of store clock fast 2013-10-22 09:16:40 +02:00
cio s390/time: correct use of store clock fast 2013-10-22 09:16:40 +02:00
crypto s390/ap_bus: use and-mask instead of a cast 2013-09-07 11:58:18 +02:00
kvm s390/irq: rework irq subclass handling 2013-09-04 17:19:13 +02:00
net s390: replace strict_strtoul() with kstrtoul() 2013-08-22 12:20:00 +02:00
scsi SCSI misc on 20130903 2013-09-03 15:48:06 -07:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00