diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2012-04-17 13:05:41 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-04-24 15:46:27 -0700 |
commit | be0fffbf62a114a11ae7fbed8984f79c359a3e9d (patch) | |
tree | 9bd7a3010c93a669b6b7ab6b749c9fe2635fd984 /arch/arm/mm | |
parent | 9843f2c0728f88144fab716109e325b6b68e18d4 (diff) |
ARM: mm: cache-l2x0: use L2X0_CACHE_ID_PART_MASK to get cache-id
l2x0_unlock does not use L2X0_CACHE_ID_PART_MASK to get the
actual cache-id, thus always iterating over only one I and one
D lockdown register.
Change-Id: If473bd32991a6a97f9da6b8712f297a8bd00d32e
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/96954
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/cache-l2x0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 0dddb54ea986..e6871a3e4d1c 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c @@ -335,6 +335,8 @@ static void __init l2x0_unlock(__u32 cache_id) int lockregs; int i; + cache_id &= L2X0_CACHE_ID_PART_MASK; + if (cache_id == L2X0_CACHE_ID_PART_L310) lockregs = 8; else |