]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: make udelay() SMP-safe
authorHelge Deller <deller@gmx.de>
Wed, 23 Oct 2013 21:29:16 +0000 (23:29 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 7 Nov 2013 21:28:26 +0000 (22:28 +0100)
commit31b5c184b8fdd981eabbd4b0b46a708adffafccb
tree595a3fe90daf8c5a5443745507349dff408af5e1
parent25775eb799d43a11122ddbd638d72821f1941045
parisc: make udelay() SMP-safe

Each CPU has it's own Control Register 16 (CR16) which is used as time source
for the udelay() function. But since the CR16 registers across different CPUs
are not synced, we need to recalculate the loop count if we get switched away
to ensure that we really delay as much time as requested.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/delay.h
arch/parisc/lib/Makefile
arch/parisc/lib/delay.c [new file with mode: 0644]