[U-Boot] [PATCH] nios2: change virt_to_phys to use physaddr_mask in global data

Thomas Chou thomas at wytron.com.tw
Tue Nov 3 06:14:25 CET 2015



On 2015年10月27日 09:09, Thomas Chou wrote:
> As virt_to_phys() is used a lot in DMA transfer, change it
> to use physaddr_mask in global data. This will save an "if"
> statement and get a little faster.
>
> Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
> ---
>   arch/nios2/cpu/cpu.c                 | 1 +
>   arch/nios2/include/asm/global_data.h | 1 +
>   arch/nios2/include/asm/io.h          | 5 +----
>   3 files changed, 3 insertions(+), 4 deletions(-)
>

Applied to u-boot-nios.


More information about the U-Boot mailing list