diff options
author | Rob Herring <robh@kernel.org> | 2017-07-18 17:42:49 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 11:47:55 -0400 |
commit | 6ef2541f268f56a4b93acb0f921c8fc4b74bfc9f (patch) | |
tree | 060a24dc2c49e189d6ea759cc568e3fe3f0a5bdc | |
parent | 39bf04db6b2b13eeb2aa565930034dc9d4198d93 (diff) |
base: Convert to using %pOF instead of full_name
Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/base/arch_topology.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 74043ead9da1..41be9ff7d70a 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c | |||
@@ -150,12 +150,12 @@ bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) | |||
150 | } | 150 | } |
151 | capacity_scale = max(cpu_capacity, capacity_scale); | 151 | capacity_scale = max(cpu_capacity, capacity_scale); |
152 | raw_capacity[cpu] = cpu_capacity; | 152 | raw_capacity[cpu] = cpu_capacity; |
153 | pr_debug("cpu_capacity: %s cpu_capacity=%u (raw)\n", | 153 | pr_debug("cpu_capacity: %pOF cpu_capacity=%u (raw)\n", |
154 | cpu_node->full_name, raw_capacity[cpu]); | 154 | cpu_node, raw_capacity[cpu]); |
155 | } else { | 155 | } else { |
156 | if (raw_capacity) { | 156 | if (raw_capacity) { |
157 | pr_err("cpu_capacity: missing %s raw capacity\n", | 157 | pr_err("cpu_capacity: missing %pOF raw capacity\n", |
158 | cpu_node->full_name); | 158 | cpu_node); |
159 | pr_err("cpu_capacity: partial information: fallback to 1024 for all CPUs\n"); | 159 | pr_err("cpu_capacity: partial information: fallback to 1024 for all CPUs\n"); |
160 | } | 160 | } |
161 | cap_parsing_failed = true; | 161 | cap_parsing_failed = true; |