diff options
| -rw-r--r-- | arch/ia64/sn/kernel/bte.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/ia64/sn/kernel/bte.c b/arch/ia64/sn/kernel/bte.c index 7f73ad4408aa..ff1c55601178 100644 --- a/arch/ia64/sn/kernel/bte.c +++ b/arch/ia64/sn/kernel/bte.c | |||
| @@ -381,14 +381,13 @@ bte_result_t bte_unaligned_copy(u64 src, u64 dest, u64 len, u64 mode) | |||
| 381 | * bcopy to the destination. | 381 | * bcopy to the destination. |
| 382 | */ | 382 | */ |
| 383 | 383 | ||
| 384 | /* Add the leader from source */ | ||
| 385 | headBteLen = len + (src & L1_CACHE_MASK); | ||
| 386 | /* Add the trailing bytes from footer. */ | ||
| 387 | headBteLen += L1_CACHE_BYTES - (headBteLen & L1_CACHE_MASK); | ||
| 388 | headBteSource = src & ~L1_CACHE_MASK; | ||
| 389 | headBcopySrcOffset = src & L1_CACHE_MASK; | 384 | headBcopySrcOffset = src & L1_CACHE_MASK; |
| 390 | headBcopyDest = dest; | 385 | headBcopyDest = dest; |
| 391 | headBcopyLen = len; | 386 | headBcopyLen = len; |
| 387 | |||
| 388 | headBteSource = src - headBcopySrcOffset; | ||
| 389 | /* Add the leading and trailing bytes from source */ | ||
| 390 | headBteLen = L1_CACHE_ALIGN(len + headBcopySrcOffset); | ||
| 392 | } | 391 | } |
| 393 | 392 | ||
| 394 | if (headBcopyLen > 0) { | 393 | if (headBcopyLen > 0) { |
