aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/davicom/dm9000.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-17 12:38:17 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-22 09:16:40 +0200
commit8c071b0f19dfa230335d22ce56a8fab5bd20cedc (patch)
treeffd0d6272cd4e3f33b3069b22cb52457030a7f7a /drivers/net/ethernet/davicom/dm9000.c
parents390/vmlogrdr: fix array access in vmlogrdr_open() (diff)
downloadlinux-dev-8c071b0f19dfa230335d22ce56a8fab5bd20cedc.tar.xz
linux-dev-8c071b0f19dfa230335d22ce56a8fab5bd20cedc.zip
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>
Diffstat (limited to 'drivers/net/ethernet/davicom/dm9000.c')
0 files changed, 0 insertions, 0 deletions