0007-ARM-qcom-Rename-various-msm-prefixed-functions-to-qc.patch 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. From 35eb6f73546d3b9475652a38fa641bd1a05a1ea1 Mon Sep 17 00:00:00 2001
  2. From: Kumar Gala <[email protected]>
  3. Date: Tue, 4 Feb 2014 15:38:45 -0600
  4. Subject: [PATCH 007/182] ARM: qcom: Rename various msm prefixed functions to
  5. qcom
  6. As mach-qcom will support a number of different Qualcomm SoC platforms
  7. we replace the msm prefix on function names with qcom to be a bit more
  8. generic.
  9. Signed-off-by: Kumar Gala <[email protected]>
  10. ---
  11. arch/arm/mach-qcom/board.c | 4 ++--
  12. arch/arm/mach-qcom/platsmp.c | 22 +++++++++++-----------
  13. 2 files changed, 13 insertions(+), 13 deletions(-)
  14. --- a/arch/arm/mach-qcom/board.c
  15. +++ b/arch/arm/mach-qcom/board.c
  16. @@ -17,7 +17,7 @@
  17. #include <asm/mach/arch.h>
  18. #include <asm/mach/map.h>
  19. -extern struct smp_operations msm_smp_ops;
  20. +extern struct smp_operations qcom_smp_ops;
  21. static const char * const qcom_dt_match[] __initconst = {
  22. "qcom,msm8660-surf",
  23. @@ -31,7 +31,7 @@ static const char * const apq8074_dt_mat
  24. };
  25. DT_MACHINE_START(QCOM_DT, "Qualcomm (Flattened Device Tree)")
  26. - .smp = smp_ops(msm_smp_ops),
  27. + .smp = smp_ops(qcom_smp_ops),
  28. .dt_compat = qcom_dt_match,
  29. MACHINE_END
  30. --- a/arch/arm/mach-qcom/platsmp.c
  31. +++ b/arch/arm/mach-qcom/platsmp.c
  32. @@ -30,7 +30,7 @@ extern void secondary_startup(void);
  33. static DEFINE_SPINLOCK(boot_lock);
  34. #ifdef CONFIG_HOTPLUG_CPU
  35. -static void __ref msm_cpu_die(unsigned int cpu)
  36. +static void __ref qcom_cpu_die(unsigned int cpu)
  37. {
  38. wfi();
  39. }
  40. @@ -42,7 +42,7 @@ static inline int get_core_count(void)
  41. return ((read_cpuid_id() >> 4) & 3) + 1;
  42. }
  43. -static void msm_secondary_init(unsigned int cpu)
  44. +static void qcom_secondary_init(unsigned int cpu)
  45. {
  46. /*
  47. * Synchronise with the boot thread.
  48. @@ -70,7 +70,7 @@ static void prepare_cold_cpu(unsigned in
  49. "address\n");
  50. }
  51. -static int msm_boot_secondary(unsigned int cpu, struct task_struct *idle)
  52. +static int qcom_boot_secondary(unsigned int cpu, struct task_struct *idle)
  53. {
  54. static int cold_boot_done;
  55. @@ -108,7 +108,7 @@ static int msm_boot_secondary(unsigned i
  56. * does not support the ARM SCU, so just set the possible cpu mask to
  57. * NR_CPUS.
  58. */
  59. -static void __init msm_smp_init_cpus(void)
  60. +static void __init qcom_smp_init_cpus(void)
  61. {
  62. unsigned int i, ncores = get_core_count();
  63. @@ -122,16 +122,16 @@ static void __init msm_smp_init_cpus(voi
  64. set_cpu_possible(i, true);
  65. }
  66. -static void __init msm_smp_prepare_cpus(unsigned int max_cpus)
  67. +static void __init qcom_smp_prepare_cpus(unsigned int max_cpus)
  68. {
  69. }
  70. -struct smp_operations msm_smp_ops __initdata = {
  71. - .smp_init_cpus = msm_smp_init_cpus,
  72. - .smp_prepare_cpus = msm_smp_prepare_cpus,
  73. - .smp_secondary_init = msm_secondary_init,
  74. - .smp_boot_secondary = msm_boot_secondary,
  75. +struct smp_operations qcom_smp_ops __initdata = {
  76. + .smp_init_cpus = qcom_smp_init_cpus,
  77. + .smp_prepare_cpus = qcom_smp_prepare_cpus,
  78. + .smp_secondary_init = qcom_secondary_init,
  79. + .smp_boot_secondary = qcom_boot_secondary,
  80. #ifdef CONFIG_HOTPLUG_CPU
  81. - .cpu_die = msm_cpu_die,
  82. + .cpu_die = qcom_cpu_die,
  83. #endif
  84. };