aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-qcom
diff options
context:
space:
mode:
authorKumar Gala <galak@codeaurora.org>2014-02-04 16:38:45 -0500
committerKumar Gala <galak@codeaurora.org>2014-02-06 17:20:41 -0500
commitcf1e8f0cd665e2a9966d2bee4e11ecc0938ff166 (patch)
treea2339c1799ec5426e9e8a66726ec7ab1d3fa7ac1 /arch/arm/mach-qcom
parent7d6d45f86969acd57850ab4d91ea002db08ff235 (diff)
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>
Diffstat (limited to 'arch/arm/mach-qcom')
-rw-r--r--arch/arm/mach-qcom/board.c4
-rw-r--r--arch/arm/mach-qcom/platsmp.c22
2 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-qcom/board.c b/arch/arm/mach-qcom/board.c
index 4529f6b222d3..830f69c3a3ce 100644
--- a/arch/arm/mach-qcom/board.c
+++ b/arch/arm/mach-qcom/board.c
@@ -17,7 +17,7 @@
17#include <asm/mach/arch.h> 17#include <asm/mach/arch.h>
18#include <asm/mach/map.h> 18#include <asm/mach/map.h>
19 19
20extern struct smp_operations msm_smp_ops; 20extern struct smp_operations qcom_smp_ops;
21 21
22static const char * const qcom_dt_match[] __initconst = { 22static const char * const qcom_dt_match[] __initconst = {
23 "qcom,msm8660-surf", 23 "qcom,msm8660-surf",
@@ -31,7 +31,7 @@ static const char * const apq8074_dt_match[] __initconst = {
31}; 31};
32 32
33DT_MACHINE_START(QCOM_DT, "Qualcomm (Flattened Device Tree)") 33DT_MACHINE_START(QCOM_DT, "Qualcomm (Flattened Device Tree)")
34 .smp = smp_ops(msm_smp_ops), 34 .smp = smp_ops(qcom_smp_ops),
35 .dt_compat = qcom_dt_match, 35 .dt_compat = qcom_dt_match,
36MACHINE_END 36MACHINE_END
37 37
diff --git a/arch/arm/mach-qcom/platsmp.c b/arch/arm/mach-qcom/platsmp.c
index 67823a7bec0d..9c53ea70550d 100644
--- a/arch/arm/mach-qcom/platsmp.c
+++ b/arch/arm/mach-qcom/platsmp.c
@@ -30,7 +30,7 @@ extern void secondary_startup(void);
30static DEFINE_SPINLOCK(boot_lock); 30static DEFINE_SPINLOCK(boot_lock);
31 31
32#ifdef CONFIG_HOTPLUG_CPU 32#ifdef CONFIG_HOTPLUG_CPU
33static void __ref msm_cpu_die(unsigned int cpu) 33static void __ref qcom_cpu_die(unsigned int cpu)
34{ 34{
35 wfi(); 35 wfi();
36} 36}
@@ -42,7 +42,7 @@ static inline int get_core_count(void)
42 return ((read_cpuid_id() >> 4) & 3) + 1; 42 return ((read_cpuid_id() >> 4) & 3) + 1;
43} 43}
44 44
45static void msm_secondary_init(unsigned int cpu) 45static void qcom_secondary_init(unsigned int cpu)
46{ 46{
47 /* 47 /*
48 * Synchronise with the boot thread. 48 * Synchronise with the boot thread.
@@ -70,7 +70,7 @@ static void prepare_cold_cpu(unsigned int cpu)
70 "address\n"); 70 "address\n");
71} 71}
72 72
73static int msm_boot_secondary(unsigned int cpu, struct task_struct *idle) 73static int qcom_boot_secondary(unsigned int cpu, struct task_struct *idle)
74{ 74{
75 static int cold_boot_done; 75 static int cold_boot_done;
76 76
@@ -108,7 +108,7 @@ static int msm_boot_secondary(unsigned int cpu, struct task_struct *idle)
108 * does not support the ARM SCU, so just set the possible cpu mask to 108 * does not support the ARM SCU, so just set the possible cpu mask to
109 * NR_CPUS. 109 * NR_CPUS.
110 */ 110 */
111static void __init msm_smp_init_cpus(void) 111static void __init qcom_smp_init_cpus(void)
112{ 112{
113 unsigned int i, ncores = get_core_count(); 113 unsigned int i, ncores = get_core_count();
114 114
@@ -122,16 +122,16 @@ static void __init msm_smp_init_cpus(void)
122 set_cpu_possible(i, true); 122 set_cpu_possible(i, true);
123} 123}
124 124
125static void __init msm_smp_prepare_cpus(unsigned int max_cpus) 125static void __init qcom_smp_prepare_cpus(unsigned int max_cpus)
126{ 126{
127} 127}
128 128
129struct smp_operations msm_smp_ops __initdata = { 129struct smp_operations qcom_smp_ops __initdata = {
130 .smp_init_cpus = msm_smp_init_cpus, 130 .smp_init_cpus = qcom_smp_init_cpus,
131 .smp_prepare_cpus = msm_smp_prepare_cpus, 131 .smp_prepare_cpus = qcom_smp_prepare_cpus,
132 .smp_secondary_init = msm_secondary_init, 132 .smp_secondary_init = qcom_secondary_init,
133 .smp_boot_secondary = msm_boot_secondary, 133 .smp_boot_secondary = qcom_boot_secondary,
134#ifdef CONFIG_HOTPLUG_CPU 134#ifdef CONFIG_HOTPLUG_CPU
135 .cpu_die = msm_cpu_die, 135 .cpu_die = qcom_cpu_die,
136#endif 136#endif
137}; 137};