summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mm/isram-driver.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-03-22 20:05:26 -0700
committerDavid S. Miller <davem@davemloft.net>2010-03-22 20:05:26 -0700
commit91c030b4d6445ebe9fbddb86d584441f300df15c (patch)
treee8a48e3ad9e0448c690268175e555fa651983546 /arch/blackfin/mm/isram-driver.c
parent7c3456fdb503071787f7f972de1069b9cacd16f0 (diff)
parentae6be51ed01d6c4aaf249a207b4434bc7785853b (diff)
downloadop-kernel-dev-91c030b4d6445ebe9fbddb86d584441f300df15c.zip
op-kernel-dev-91c030b4d6445ebe9fbddb86d584441f300df15c.tar.gz
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Diffstat (limited to 'arch/blackfin/mm/isram-driver.c')
-rw-r--r--arch/blackfin/mm/isram-driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/blackfin/mm/isram-driver.c b/arch/blackfin/mm/isram-driver.c
index 84cdc5a..9213e23 100644
--- a/arch/blackfin/mm/isram-driver.c
+++ b/arch/blackfin/mm/isram-driver.c
@@ -62,7 +62,7 @@ static void isram_write(const void *addr, uint64_t data)
uint32_t cmd;
unsigned long flags;
- if (addr >= (void *)(L1_CODE_START + L1_CODE_LENGTH))
+ if (unlikely(addr >= (void *)(L1_CODE_START + L1_CODE_LENGTH)))
return;
cmd = IADDR2DTEST(addr) | 2; /* write */
@@ -93,7 +93,7 @@ static uint64_t isram_read(const void *addr)
unsigned long flags;
uint64_t ret;
- if (addr > (void *)(L1_CODE_START + L1_CODE_LENGTH))
+ if (unlikely(addr > (void *)(L1_CODE_START + L1_CODE_LENGTH)))
return 0;
cmd = IADDR2DTEST(addr) | 0; /* read */
@@ -120,7 +120,7 @@ static bool isram_check_addr(const void *addr, size_t n)
{
if ((addr >= (void *)L1_CODE_START) &&
(addr < (void *)(L1_CODE_START + L1_CODE_LENGTH))) {
- if ((addr + n) > (void *)(L1_CODE_START + L1_CODE_LENGTH)) {
+ if (unlikely((addr + n) > (void *)(L1_CODE_START + L1_CODE_LENGTH))) {
show_stack(NULL, NULL);
pr_err("copy involving %p length (%zu) too long\n", addr, n);
}
OpenPOWER on IntegriCloud