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

2015-11-02 Thread Thomas Chou
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 --- arch/nios2/cpu/cpu.c | 1 + arch/nios2/include/a

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

2015-10-27 Thread Marek Vasut
On Tuesday, October 27, 2015 at 02:09:57 AM, 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 Makes sense. Acked-by: Marek Vasut Bes

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

2015-10-26 Thread Thomas Chou
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 --- arch/nios2/cpu/cpu.c | 1 + arch/nios2/include/asm/global_data.h | 1 + arch/nios2/include/asm/