of: Move CPU node related functions to their own file
authorRob Herring <robh@kernel.org>
Wed, 29 Mar 2023 15:52:01 +0000 (10:52 -0500)
committerRob Herring <robh@kernel.org>
Thu, 13 Apr 2023 22:46:34 +0000 (17:46 -0500)
commitb58fa269c59d0f401ca569c661c6d7f3e1a20eeb
treed146168e15f646c19d8ae3154f259bc01d6a742c
parent82174a0a9c5cf36a3e421fc1d2c86998d8023f61
of: Move CPU node related functions to their own file

drivers/of/base.c is quite long and we've accumulated a number of CPU
node functions. Let's move them to a new file, cpu.c, along with the
lone of_cpu_device_node_get() in of_device.h. Moving the declaration has
no effect yet as of.h is included by of_device.h. This serves as
preparation to disentangle the includes in of_device.h and
of_platform.h.

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20230329-dt-cpu-header-cleanups-v1-4-581e2605fe47@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/Makefile
drivers/of/base.c
drivers/of/cpu.c [new file with mode: 0644]
include/linux/of.h
include/linux/of_device.h