Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6a45951 authored by Abhimanyu Kapur's avatar Abhimanyu Kapur Committed by Matt Wagantall
Browse files

ARM: gic: enclose gic_sgi_lock declaration with CONFIG_SMP ifdef



Add dependency on CONFIG_SMP to the declaration of gic_sgi_lock
since the users of the lock have the same.

Change-Id: I0175d415d8e3e711918677f9433113aa2db51bda
Signed-off-by: default avatarAbhimanyu Kapur <abhimany@codeaurora.org>
parent b866cabf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -80,8 +80,9 @@ struct gic_chip_data {

static DEFINE_RAW_SPINLOCK(irq_controller_lock);
/* Synchronize switching CPU interface and sending SGIs */
#ifdef CONFIG_SMP
static DEFINE_RAW_SPINLOCK(gic_sgi_lock);

#endif
/*
 * The GIC mapping of CPU interfaces does not necessarily match
 * the logical CPU numbering.  Let's use a mapping as returned