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

Commit afd05423 authored by Michael Neuling's avatar Michael Neuling Committed by Paul Mackerras
Browse files

[POWERPC] Enable PURR sysfs entry correctly



We have CPU_FTR_PURR now, so let's use it.

Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent b9377ffc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -230,7 +230,7 @@ static void register_cpu_online(unsigned int cpu)
	if (cur_cpu_spec->num_pmcs >= 8)
		sysdev_create_file(s, &attr_pmc8);

	if (cpu_has_feature(CPU_FTR_SMT))
	if (cpu_has_feature(CPU_FTR_PURR))
		sysdev_create_file(s, &attr_purr);
}

@@ -272,7 +272,7 @@ static void unregister_cpu_online(unsigned int cpu)
	if (cur_cpu_spec->num_pmcs >= 8)
		sysdev_remove_file(s, &attr_pmc8);

	if (cpu_has_feature(CPU_FTR_SMT))
	if (cpu_has_feature(CPU_FTR_PURR))
		sysdev_remove_file(s, &attr_purr);
}
#endif /* CONFIG_HOTPLUG_CPU */