diff options
author | Helge Deller <deller@gmx.de> | 2016-04-09 08:26:14 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2016-05-22 21:38:56 +0200 |
commit | 06bff6b9d7d50566a9320f64b0624957798cb08b (patch) | |
tree | 62aae1924b900d7ef2415f1cf8e4c8a270c11fc9 /arch/parisc/lib/bitops.c | |
parent | parisc: Add syscall tracepoint support (diff) | |
download | linux-06bff6b9d7d50566a9320f64b0624957798cb08b.tar.xz linux-06bff6b9d7d50566a9320f64b0624957798cb08b.zip |
parisc: Simplify and speed up get_user() and put_user()
This patch simplifies the code for get_user() and put_user() a lot.
Instead of accessing kernel memory (%sr0) and userspace memory (%sr3)
hard-coded in the assembler instruction, we now preload %sr2 with either
%sr0 (for accessing KERNEL_DS) or with sr3 (to access USER_DS) and
use %sr2 in the load directly.
The generated code avoids a branch and speeds up execution by generating
less assembler instructions.
Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Diffstat (limited to 'arch/parisc/lib/bitops.c')
0 files changed, 0 insertions, 0 deletions