Skip to content

Commit

Permalink
msm: use of swp{b} is deprecated for ARMv6+
Browse files Browse the repository at this point in the history
Change-Id: I6ac5b459dcdc0b4a8d88df12243dfeb9468bcc0d
Signed-off-by: Pranav Vashi <[email protected]>
  • Loading branch information
neobuddy89 authored and airend committed Sep 18, 2015
1 parent 87ae938 commit 0d1bba2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/arm/mach-msm/remote_spinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
#define CURRENT_MODE_INIT AUTO_MODE;
#endif

#if defined(CONFIG_THUMB2_KERNEL) || defined(CONFIG_ARCH_MSM8974)
#define SWP_OFF
#endif

static int current_mode = CURRENT_MODE_INIT;

static int is_hw_lock_type;
Expand Down Expand Up @@ -144,7 +148,7 @@ static int __raw_remote_dek_spin_owner(raw_remote_spinlock_t *lock)
}
/* end dekkers implementation ----------------------------------------------- */

#ifndef CONFIG_THUMB2_KERNEL
#ifndef SWP_OFF
/* swp implementation ------------------------------------------------------- */
static void __raw_remote_swp_spin_lock(raw_remote_spinlock_t *lock)
{
Expand Down Expand Up @@ -434,7 +438,7 @@ static void initialize_ops(void)
current_ops.owner = __raw_remote_dek_spin_owner;
is_hw_lock_type = 0;
break;
#ifndef CONFIG_THUMB2_KERNEL
#ifndef SWP_OFF
case SWP_MODE:
current_ops.lock = __raw_remote_swp_spin_lock;
current_ops.unlock = __raw_remote_swp_spin_unlock;
Expand Down

0 comments on commit 0d1bba2

Please sign in to comment.