@JorgeCas
disable_cpu_nodes does two things: delete the cpu node and disable the thermal nodes related to the deleted cpu node.
It is not change the CPU node status to "disabled" you mentioned.
rc = fdt_del_node(blob, nodeoff);
https://github.com/u-boot/u-boot/blob/master/arch/arm/mach-imx/fdt.c
int disable_cpu_nodes(void *blob, const char * const *nodes_path, u32 num_disabled_cores,
u32 max_cores)
{
u32 i = 0;
int rc;
int nodeoff;
if (max_cores == 0 || (num_disabled_cores > (max_cores - 1)))
return -EINVAL;
i = max_cores - num_disabled_cores;
for (; i < max_cores; i++) {
nodeoff = fdt_path_offset(blob, nodes_path[i]);
if (nodeoff < 0)
continue; /* Not found, skip it */
debug("Found %s node\n", nodes_path[i]);
rc = fdt_del_node(blob, nodeoff);
if (rc < 0) {
printf("Unable to delete node %s, err=%s\n",
nodes_path[i], fdt_strerror(rc));
} else {
printf("Delete node %s\n", nodes_path[i]);
}
}
disable_thermal_cpu_nodes(blob, num_disabled_cores, max_cores);
return 0;
}