Skip to content

Commit

Permalink
s390/topology: Remove CPU KOBJ_CHANGE uevents
Browse files Browse the repository at this point in the history
s390 generates KOBJ_CHANGE uevents on CPUs whenever a topology update
occurs. These uevents currently have no users and they are also not
present on other architectures. As they are not necessary, remove
these extra uevents.

Suggested-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
  • Loading branch information
Mete Durlu authored and Alexander Gordeev committed Jul 2, 2024
1 parent bb748ba commit d6d1aa5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arch/s390/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,16 +320,10 @@ static int __arch_update_cpu_topology(void)

int arch_update_cpu_topology(void)
{
struct device *dev;
int cpu, rc;
int rc;

rc = __arch_update_cpu_topology();
on_each_cpu(__arch_update_dedicated_flag, NULL, 0);
for_each_online_cpu(cpu) {
dev = get_cpu_device(cpu);
if (dev)
kobject_uevent(&dev->kobj, KOBJ_CHANGE);
}
return rc;
}

Expand Down

0 comments on commit d6d1aa5

Please sign in to comment.