Re: [PATCH] parisc: Simplify and speed up get_user() and put_user()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Samstag, 9. April 2016, 08:26:14 schrieb Helge Deller:
> 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@xxxxxx>

Tested-by: Rolf Eike Beer <eike-kernel@xxxxxxxxx>

Eike

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux