]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/powerpc/mm/numa.c
Merge tag 'perf-core-for-mingo-4.21-20190104' of git://git.kernel.org/pub/scm/linux...
[mirror_ubuntu-jammy-kernel.git] / arch / powerpc / mm / numa.c
index ce28ae5ca08033ff36ee157e9b83be3a61d44f52..87f0dd004295761b321216adf333f1eab1ca09df 100644 (file)
@@ -1475,7 +1475,7 @@ static int dt_update_callback(struct notifier_block *nb,
 
        switch (action) {
        case OF_RECONFIG_UPDATE_PROPERTY:
-               if (!of_prop_cmp(update->dn->type, "cpu") &&
+               if (of_node_is_type(update->dn, "cpu") &&
                    !of_prop_cmp(update->prop->name, "ibm,associativity")) {
                        u32 core_id;
                        of_property_read_u32(update->dn, "reg", &core_id);