Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3eeba1a2 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

arch_topology: Don't break lines unnecessarily



There is no need of line break at few places, avoid them.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarJuri Lelli <juri.lelli@arm.com>
Tested-by: default avatarJuri Lelli <juri.lelli@arm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c2a737eb
Loading
Loading
Loading
Loading
+3 −6
Original line number Original line Diff line number Diff line
@@ -41,8 +41,7 @@ static ssize_t cpu_capacity_show(struct device *dev,
{
{
	struct cpu *cpu = container_of(dev, struct cpu, dev);
	struct cpu *cpu = container_of(dev, struct cpu, dev);


	return sprintf(buf, "%lu\n",
	return sprintf(buf, "%lu\n", topology_get_cpu_scale(NULL, cpu->dev.id));
			topology_get_cpu_scale(NULL, cpu->dev.id));
}
}


static ssize_t cpu_capacity_store(struct device *dev,
static ssize_t cpu_capacity_store(struct device *dev,
@@ -128,8 +127,7 @@ int __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu)
	if (cap_parsing_failed)
	if (cap_parsing_failed)
		return !ret;
		return !ret;


	ret = of_property_read_u32(cpu_node,
	ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz",
				   "capacity-dmips-mhz",
				   &cpu_capacity);
				   &cpu_capacity);
	if (!ret) {
	if (!ret) {
		if (!raw_capacity) {
		if (!raw_capacity) {
@@ -181,8 +179,7 @@ init_cpu_capacity_callback(struct notifier_block *nb,
		pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n",
		pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n",
				cpumask_pr_args(policy->related_cpus),
				cpumask_pr_args(policy->related_cpus),
				cpumask_pr_args(cpus_to_visit));
				cpumask_pr_args(cpus_to_visit));
		cpumask_andnot(cpus_to_visit,
		cpumask_andnot(cpus_to_visit, cpus_to_visit,
			       cpus_to_visit,
			       policy->related_cpus);
			       policy->related_cpus);
		for_each_cpu(cpu, policy->related_cpus) {
		for_each_cpu(cpu, policy->related_cpus) {
			raw_capacity[cpu] = topology_get_cpu_scale(NULL, cpu) *
			raw_capacity[cpu] = topology_get_cpu_scale(NULL, cpu) *