diff options
author | Kumar Gala <galak@codeaurora.org> | 2014-02-04 16:38:45 -0500 |
---|---|---|
committer | Kumar Gala <galak@codeaurora.org> | 2014-02-06 17:20:41 -0500 |
commit | cf1e8f0cd665e2a9966d2bee4e11ecc0938ff166 (patch) | |
tree | a2339c1799ec5426e9e8a66726ec7ab1d3fa7ac1 /arch/arm/mach-qcom | |
parent | 7d6d45f86969acd57850ab4d91ea002db08ff235 (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.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-qcom/platsmp.c | 22 |
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 | ||
20 | extern struct smp_operations msm_smp_ops; | 20 | extern struct smp_operations qcom_smp_ops; |
21 | 21 | ||
22 | static const char * const qcom_dt_match[] __initconst = { | 22 | static 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 | ||
33 | DT_MACHINE_START(QCOM_DT, "Qualcomm (Flattened Device Tree)") | 33 | DT_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, |
36 | MACHINE_END | 36 | MACHINE_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); | |||
30 | static DEFINE_SPINLOCK(boot_lock); | 30 | static DEFINE_SPINLOCK(boot_lock); |
31 | 31 | ||
32 | #ifdef CONFIG_HOTPLUG_CPU | 32 | #ifdef CONFIG_HOTPLUG_CPU |
33 | static void __ref msm_cpu_die(unsigned int cpu) | 33 | static 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 | ||
45 | static void msm_secondary_init(unsigned int cpu) | 45 | static 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 | ||
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) |
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 | */ |
111 | static void __init msm_smp_init_cpus(void) | 111 | static 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 | ||
125 | static void __init msm_smp_prepare_cpus(unsigned int max_cpus) | 125 | static void __init qcom_smp_prepare_cpus(unsigned int max_cpus) |
126 | { | 126 | { |
127 | } | 127 | } |
128 | 128 | ||
129 | struct smp_operations msm_smp_ops __initdata = { | 129 | struct 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 | }; |