0162-PM-OPP-Remove-ARCH_HAS_OPP.patch 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. From 18e4542f7b02f586d46594977818cd6b24d9cbcb Mon Sep 17 00:00:00 2001
  2. From: Mark Brown <[email protected]>
  3. Date: Fri, 6 Jun 2014 11:36:56 +0100
  4. Subject: [PATCH 162/182] PM / OPP: Remove ARCH_HAS_OPP
  5. Since the OPP layer is a kernel library which has been converted to be
  6. directly selectable by its callers rather than user selectable and
  7. requiring architectures to enable it explicitly the ARCH_HAS_OPP symbol
  8. has become redundant and can be removed. Do so.
  9. Signed-off-by: Mark Brown <[email protected]>
  10. Signed-off-by: Stephen Boyd <[email protected]>
  11. ---
  12. Documentation/power/opp.txt | 3 ---
  13. arch/arm/mach-exynos/Kconfig | 1 -
  14. arch/arm/mach-highbank/Kconfig | 1 -
  15. arch/arm/mach-omap2/Kconfig | 1 -
  16. arch/arm/mach-shmobile/Kconfig | 2 --
  17. arch/arm/mach-vexpress/Kconfig | 1 -
  18. drivers/devfreq/Kconfig | 1 -
  19. kernel/power/Kconfig | 3 ---
  20. 8 files changed, 13 deletions(-)
  21. --- a/Documentation/power/opp.txt
  22. +++ b/Documentation/power/opp.txt
  23. @@ -52,9 +52,6 @@ Typical usage of the OPP library is as f
  24. SoC framework -> modifies on required cases certain OPPs -> OPP layer
  25. -> queries to search/retrieve information ->
  26. -Architectures that provide a SoC framework for OPP should select ARCH_HAS_OPP
  27. -to make the OPP layer available.
  28. -
  29. OPP layer expects each domain to be represented by a unique device pointer. SoC
  30. framework registers a set of initial OPPs per device with the OPP layer. This
  31. list is expected to be an optimally small number typically around 5 per device.
  32. --- a/arch/arm/mach-exynos/Kconfig
  33. +++ b/arch/arm/mach-exynos/Kconfig
  34. @@ -107,7 +107,6 @@ config SOC_EXYNOS5440
  35. depends on ARCH_EXYNOS5
  36. select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
  37. select ARCH_HAS_BANDGAP
  38. - select ARCH_HAS_OPP
  39. select HAVE_ARM_ARCH_TIMER
  40. select AUTO_ZRELADDR
  41. select MIGHT_HAVE_PCI
  42. --- a/arch/arm/mach-highbank/Kconfig
  43. +++ b/arch/arm/mach-highbank/Kconfig
  44. @@ -2,7 +2,6 @@ config ARCH_HIGHBANK
  45. bool "Calxeda ECX-1000/2000 (Highbank/Midway)" if ARCH_MULTI_V7
  46. select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
  47. select ARCH_HAS_HOLES_MEMORYMODEL
  48. - select ARCH_HAS_OPP
  49. select ARCH_SUPPORTS_BIG_ENDIAN
  50. select ARCH_WANT_OPTIONAL_GPIOLIB
  51. select ARM_AMBA
  52. --- a/arch/arm/mach-omap2/Kconfig
  53. +++ b/arch/arm/mach-omap2/Kconfig
  54. @@ -13,7 +13,6 @@ config ARCH_OMAP3
  55. bool "TI OMAP3"
  56. depends on ARCH_MULTI_V7
  57. select ARCH_OMAP2PLUS
  58. - select ARCH_HAS_OPP
  59. select ARM_CPU_SUSPEND if PM
  60. select CPU_V7
  61. select MULTI_IRQ_HANDLER
  62. --- a/arch/arm/mach-shmobile/Kconfig
  63. +++ b/arch/arm/mach-shmobile/Kconfig
  64. @@ -85,7 +85,6 @@ config ARCH_R8A73A4
  65. select CPU_V7
  66. select SH_CLK_CPG
  67. select RENESAS_IRQC
  68. - select ARCH_HAS_OPP
  69. config ARCH_R8A7740
  70. bool "R-Mobile A1 (R8A77400)"
  71. @@ -270,7 +269,6 @@ config MACH_KOELSCH
  72. config MACH_KZM9G
  73. bool "KZM-A9-GT board"
  74. depends on ARCH_SH73A0
  75. - select ARCH_HAS_OPP
  76. select ARCH_REQUIRE_GPIOLIB
  77. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  78. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  79. --- a/arch/arm/mach-vexpress/Kconfig
  80. +++ b/arch/arm/mach-vexpress/Kconfig
  81. @@ -67,7 +67,6 @@ config ARCH_VEXPRESS_DCSCB
  82. config ARCH_VEXPRESS_SPC
  83. bool "Versatile Express Serial Power Controller (SPC)"
  84. - select ARCH_HAS_OPP
  85. select PM_OPP
  86. help
  87. The TC2 (A15x2 A7x3) versatile express core tile integrates a logic
  88. --- a/drivers/devfreq/Kconfig
  89. +++ b/drivers/devfreq/Kconfig
  90. @@ -68,7 +68,6 @@ comment "DEVFREQ Drivers"
  91. config ARM_EXYNOS4_BUS_DEVFREQ
  92. bool "ARM Exynos4210/4212/4412 Memory Bus DEVFREQ Driver"
  93. depends on (CPU_EXYNOS4210 || SOC_EXYNOS4212 || SOC_EXYNOS4412) && !ARCH_MULTIPLATFORM
  94. - select ARCH_HAS_OPP
  95. select DEVFREQ_GOV_SIMPLE_ONDEMAND
  96. help
  97. This adds the DEVFREQ driver for Exynos4210 memory bus (vdd_int)
  98. --- a/kernel/power/Kconfig
  99. +++ b/kernel/power/Kconfig
  100. @@ -253,9 +253,6 @@ config APM_EMULATION
  101. anything, try disabling/enabling this option (or disabling/enabling
  102. APM in your BIOS).
  103. -config ARCH_HAS_OPP
  104. - bool
  105. -
  106. config PM_OPP
  107. bool "Operating Performance Point (OPP) Layer library"
  108. depends on ARCH_HAS_OPP