All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 00/11] ARM: DT: update cpu device of_node
@ 2013-07-15 10:22 ` Sudeep.KarkadaNagesha at arm.com
  0 siblings, 0 replies; 48+ messages in thread
From: Sudeep.KarkadaNagesha @ 2013-07-15 10:22 UTC (permalink / raw)
  To: linux-pm, linux-kernel, linux-arm-kernel
  Cc: cpufreq, arnd, olof, lorenzo.pieralisi, rob.herring,
	grant.likely, rjw, viresh.kumar, gregkh, gregory.clement, kernel,
	shawn.guo, linux, Sudeep KarkadaNagesha

From: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>

As more and more information is getting added into the cpu node, the number
of drivers needing to parse the device tree for CPU nodes are increasing.
Most of the time, the information needed from the cpu node is preferred
in the logical CPU order. Hence many drivers first parse and search the
CPU node, match them to logical index if needed and then search for the
required property inside a particular cpu node. Some of them assume the
logical and physical CPU ordering to be same which is incorrect.

This patch series initialises the of_node in all the cpu devices when
registering the CPU device.
1. This avoids different drivers having to parse the cpu nodes to obtain
   different attributes like operating points, latency,...etc.
2. This handles different physical and logical cpu ordering which is not
   the case in current code.
3. Also all the cpu nodes will have their of_node initialised correctly.
   Currently different drivers assign them partially and incorrectly.
4. Removes all the reduntant parsing in various drivers.

Regards,
Sudeep

Sudeep KarkadaNagesha (11):
  driver/core: cpu: initialize of_node in cpu's device struture
  ARM: DT/kernel: define ARM specific arch_of_get_cpu_node
  ARM: topology: remove hwid(MPIDR dependency) from cpu_capacity
  ARM: mvebu: remove device tree parsing for cpu nodes
  drivers/bus: arm-cci: avoid parsing DT for cpu device nodes
  cpufreq: imx6q-cpufreq: remove device tree parsing for cpu nodes
  cpufreq: cpufreq-cpu0: remove device tree parsing for cpu nodes
  cpufreq: highbank-cpufreq: remove device tree parsing for cpu nodes
  cpufreq: spear-cpufreq: remove device tree parsing for cpu nodes
  cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes
  cpufreq: arm_big_little: remove device tree parsing for cpu nodes

 arch/arm/include/asm/prom.h         |  1 +
 arch/arm/kernel/devtree.c           | 29 ++++++++++++++++++
 arch/arm/kernel/topology.c          | 61 ++++++++++++-------------------------
 arch/arm/mach-imx/mach-imx6q.c      |  3 +-
 arch/arm/mach-mvebu/platsmp.c       | 52 +++++++++++++++----------------
 drivers/base/cpu.c                  | 19 ++++++++++++
 drivers/bus/arm-cci.c               | 28 +++++------------
 drivers/cpufreq/arm_big_little_dt.c | 39 +++++++++++-------------
 drivers/cpufreq/cpufreq-cpu0.c      | 23 +++-----------
 drivers/cpufreq/highbank-cpufreq.c  | 18 ++++-------
 drivers/cpufreq/imx6q-cpufreq.c     |  4 +--
 drivers/cpufreq/kirkwood-cpufreq.c  | 14 +++++++--
 drivers/cpufreq/spear-cpufreq.c     | 10 +++++-
 13 files changed, 149 insertions(+), 152 deletions(-)

-- 
1.8.1.2



^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2013-07-17 14:16 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15 10:22 [RFC PATCH 00/11] ARM: DT: update cpu device of_node Sudeep.KarkadaNagesha
2013-07-15 10:22 ` Sudeep.KarkadaNagesha at arm.com
2013-07-15 10:22 ` [RFC PATCH 01/11] driver/core: cpu: initialize of_node in cpu's device struture Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-16  6:27   ` Viresh Kumar
2013-07-16  6:27     ` Viresh Kumar
2013-07-15 10:22 ` [RFC PATCH 02/11] ARM: DT/kernel: define ARM specific arch_of_get_cpu_node Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-15 19:10   ` Rob Herring
2013-07-15 19:10     ` Rob Herring
2013-07-16  6:29     ` Viresh Kumar
2013-07-16  6:29       ` Viresh Kumar
2013-07-16  9:03     ` Sudeep KarkadaNagesha
2013-07-16  9:03       ` Sudeep KarkadaNagesha
2013-07-16  9:03       ` Sudeep KarkadaNagesha
2013-07-16  9:03       ` Sudeep KarkadaNagesha
2013-07-17 14:16       ` Sudeep KarkadaNagesha
2013-07-17 14:16         ` Sudeep KarkadaNagesha
2013-07-17 14:16         ` Sudeep KarkadaNagesha
2013-07-17 14:16         ` Sudeep KarkadaNagesha
2013-07-15 10:22 ` [RFC PATCH 03/11] ARM: topology: remove hwid/MPIDR dependency from cpu_capacity Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-15 10:22 ` [RFC PATCH 04/11] ARM: mvebu: remove device tree parsing for cpu nodes Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-15 10:22   ` Sudeep.KarkadaNagesha
2013-07-15 10:22 ` [RFC PATCH 05/11] drivers/bus: arm-cci: avoid parsing DT for cpu device nodes Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-15 10:22   ` Sudeep.KarkadaNagesha
2013-07-15 10:22 ` [RFC PATCH 06/11] cpufreq: imx6q-cpufreq: remove device tree parsing for cpu nodes Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-16  1:22   ` Shawn Guo
2013-07-16  1:22     ` Shawn Guo
2013-07-16  1:22     ` Shawn Guo
2013-07-15 10:22 ` [RFC PATCH 07/11] cpufreq: cpufreq-cpu0: " Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-16  1:26   ` Shawn Guo
2013-07-16  1:26     ` Shawn Guo
2013-07-16  1:26     ` Shawn Guo
2013-07-15 10:22 ` [RFC PATCH 08/11] cpufreq: highbank-cpufreq: " Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-15 10:22 ` [RFC PATCH 09/11] cpufreq: spear-cpufreq: " Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-15 10:22 ` [RFC PATCH 10/11] cpufreq: kirkwood-cpufreq: " Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-15 10:22 ` [RFC PATCH 11/11] cpufreq: arm_big_little: " Sudeep.KarkadaNagesha
2013-07-15 10:22   ` Sudeep.KarkadaNagesha at arm.com
2013-07-16  6:31 ` [RFC PATCH 00/11] ARM: DT: update cpu device of_node Viresh Kumar
2013-07-16  6:31   ` Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.