From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Tue, 3 Nov 2015 13:14:25 +0800 Subject: [U-Boot] [PATCH] nios2: change virt_to_phys to use physaddr_mask in global data In-Reply-To: <1445908197-9907-1-git-send-email-thomas@wytron.com.tw> References: <1445908197-9907-1-git-send-email-thomas@wytron.com.tw> Message-ID: <563842B1.1070700@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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/asm/global_data.h | 1 + > arch/nios2/include/asm/io.h | 5 +---- > 3 files changed, 3 insertions(+), 4 deletions(-) > Applied to u-boot-nios.