Skip to content

Commit cf1e8f0

Browse files
author
Kumar Gala
committed
ARM: qcom: Rename various msm prefixed functions to qcom
As mach-qcom will support a number of different Qualcomm SoC platforms we replace the msm prefix on function names with qcom to be a bit more generic. Signed-off-by: Kumar Gala <galak@codeaurora.org>
1 parent 7d6d45f commit cf1e8f0

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎arch/arm/mach-qcom/board.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <asm/mach/arch.h>
1818
#include <asm/mach/map.h>
1919

20-
extern struct smp_operations msm_smp_ops;
20+
extern struct smp_operations qcom_smp_ops;
2121

2222
static const char * const qcom_dt_match[] __initconst = {
2323
"qcom,msm8660-surf",
@@ -31,7 +31,7 @@ static const char * const apq8074_dt_match[] __initconst = {
3131
};
3232

3333
DT_MACHINE_START(QCOM_DT, "Qualcomm (Flattened Device Tree)")
34-
.smp = smp_ops(msm_smp_ops),
34+
.smp = smp_ops(qcom_smp_ops),
3535
.dt_compat = qcom_dt_match,
3636
MACHINE_END
3737

‎arch/arm/mach-qcom/platsmp.c‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern void secondary_startup(void);
3030
static DEFINE_SPINLOCK(boot_lock);
3131

3232
#ifdef CONFIG_HOTPLUG_CPU
33-
static void __ref msm_cpu_die(unsigned int cpu)
33+
static void __ref qcom_cpu_die(unsigned int cpu)
3434
{
3535
wfi();
3636
}
@@ -42,7 +42,7 @@ static inline int get_core_count(void)
4242
return ((read_cpuid_id() >> 4) & 3) + 1;
4343
}
4444

45-
static void msm_secondary_init(unsigned int cpu)
45+
static void qcom_secondary_init(unsigned int cpu)
4646
{
4747
/*
4848
* Synchronise with the boot thread.
@@ -70,7 +70,7 @@ static void prepare_cold_cpu(unsigned int cpu)
7070
"address\n");
7171
}
7272

73-
static int msm_boot_secondary(unsigned int cpu, struct task_struct *idle)
73+
static int qcom_boot_secondary(unsigned int cpu, struct task_struct *idle)
7474
{
7575
static int cold_boot_done;
7676

@@ -108,7 +108,7 @@ static int msm_boot_secondary(unsigned int cpu, struct task_struct *idle)
108108
* does not support the ARM SCU, so just set the possible cpu mask to
109109
* NR_CPUS.
110110
*/
111-
static void __init msm_smp_init_cpus(void)
111+
static void __init qcom_smp_init_cpus(void)
112112
{
113113
unsigned int i, ncores = get_core_count();
114114

@@ -122,16 +122,16 @@ static void __init msm_smp_init_cpus(void)
122122
set_cpu_possible(i, true);
123123
}
124124

125-
static void __init msm_smp_prepare_cpus(unsigned int max_cpus)
125+
static void __init qcom_smp_prepare_cpus(unsigned int max_cpus)
126126
{
127127
}
128128

129-
struct smp_operations msm_smp_ops __initdata = {
130-
.smp_init_cpus = msm_smp_init_cpus,
131-
.smp_prepare_cpus = msm_smp_prepare_cpus,
132-
.smp_secondary_init = msm_secondary_init,
133-
.smp_boot_secondary = msm_boot_secondary,
129+
struct smp_operations qcom_smp_ops __initdata = {
130+
.smp_init_cpus = qcom_smp_init_cpus,
131+
.smp_prepare_cpus = qcom_smp_prepare_cpus,
132+
.smp_secondary_init = qcom_secondary_init,
133+
.smp_boot_secondary = qcom_boot_secondary,
134134
#ifdef CONFIG_HOTPLUG_CPU
135-
.cpu_die = msm_cpu_die,
135+
.cpu_die = qcom_cpu_die,
136136
#endif
137137
};

0 commit comments

Comments
 (0)