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

Commit 4fca9f50 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

drivers: soc: qcom: Fix per_cpu declaration of pending_ipi



Switch an accidental use of DEFINE_PER_CPU when
the developer clearly wanted to use DECLARE_PER_CPU.

CONFIG_DEBUG_FORCE_WEAK_CPU enforces that each per-cpu object
in the kernel have a unique name so if one accidently uses
DEFINE_PER_CPU_READ_MOSTLY in a header it would define the same
symbol in each file that used the header.

Fixes: 0aaf4cf7 ("drivers: soc: qcom: snapshot of idle/sleep driver as of msm-4.14")
Change-Id: Ic0dedbadbce4e85f2130ea59c84d1e10767d50d7
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 7d038aac
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-License-Identifier: GPL-2.0-only */


/*
/*
 * Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
 */
 */


#include <soc/qcom/pm.h>
#include <soc/qcom/pm.h>
@@ -127,7 +127,7 @@ uint32_t *get_per_cpu_min_residency(int cpu);
extern struct lpm_cluster *lpm_root_node;
extern struct lpm_cluster *lpm_root_node;


#if defined(CONFIG_SMP)
#if defined(CONFIG_SMP)
extern DEFINE_PER_CPU(bool, pending_ipi);
DECLARE_PER_CPU(bool, pending_ipi);
static inline bool is_IPI_pending(const struct cpumask *mask)
static inline bool is_IPI_pending(const struct cpumask *mask)
{
{
	unsigned int cpu;
	unsigned int cpu;