Skip to content

Commit 38c392c

Browse files
nathanlynchmpe
authored andcommitted
powerpc/pseries: remove dlpar_cpu_readd()
dlpar_cpu_readd() is unused now. Signed-off-by: Nathan Lynch <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4abe60c commit 38c392c

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

arch/powerpc/include/asm/topology.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ int get_physical_package_id(int cpu);
115115
#define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu))
116116
#define topology_core_id(cpu) (cpu_to_core_id(cpu))
117117

118-
int dlpar_cpu_readd(int cpu);
119118
#endif
120119
#endif
121120

arch/powerpc/platforms/pseries/hotplug-cpu.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -779,25 +779,6 @@ static int dlpar_cpu_add_by_count(u32 cpus_to_add)
779779
return rc;
780780
}
781781

782-
int dlpar_cpu_readd(int cpu)
783-
{
784-
struct device_node *dn;
785-
struct device *dev;
786-
u32 drc_index;
787-
int rc;
788-
789-
dev = get_cpu_device(cpu);
790-
dn = dev->of_node;
791-
792-
rc = of_property_read_u32(dn, "ibm,my-drc-index", &drc_index);
793-
794-
rc = dlpar_cpu_remove_by_index(drc_index);
795-
if (!rc)
796-
rc = dlpar_cpu_add(drc_index);
797-
798-
return rc;
799-
}
800-
801782
int dlpar_cpu(struct pseries_hp_errorlog *hp_elog)
802783
{
803784
u32 count, drc_index;

0 commit comments

Comments
 (0)