dlpar.c (b4da00601edd39184fa187d5fd6dfc36232991cc) dlpar.c (2222ce0fbbcc4ebfa9995c8d23d72c8239ad712c)
1/*
2 * Support for dynamic reconfiguration for PCI, Memory, and CPU
3 * Hotplug and Dynamic Logical Partitioning on RPA platforms.
4 *
5 * Copyright (C) 2009 Nathan Fontenot
6 * Copyright (C) 2009 IBM Corporation
7 *
8 * This program is free software; you can redistribute it and/or

--- 407 unchanged lines hidden (view full) ---

416 if (rc)
417 return -EINVAL;
418
419 parent = of_find_node_by_path("/cpus");
420 if (!parent)
421 return -ENODEV;
422
423 dn = dlpar_configure_connector(cpu_to_be32(drc_index), parent);
1/*
2 * Support for dynamic reconfiguration for PCI, Memory, and CPU
3 * Hotplug and Dynamic Logical Partitioning on RPA platforms.
4 *
5 * Copyright (C) 2009 Nathan Fontenot
6 * Copyright (C) 2009 IBM Corporation
7 *
8 * This program is free software; you can redistribute it and/or

--- 407 unchanged lines hidden (view full) ---

416 if (rc)
417 return -EINVAL;
418
419 parent = of_find_node_by_path("/cpus");
420 if (!parent)
421 return -ENODEV;
422
423 dn = dlpar_configure_connector(cpu_to_be32(drc_index), parent);
424 of_node_put(parent);
424 if (!dn)
425 return -EINVAL;
426
425 if (!dn)
426 return -EINVAL;
427
427 of_node_put(parent);
428
429 rc = dlpar_attach_node(dn);
430 if (rc) {
431 dlpar_release_drc(drc_index);
432 dlpar_free_cc_nodes(dn);
433 return rc;
434 }
435
436 rc = dlpar_online_cpu(dn);

--- 223 unchanged lines hidden ---
428 rc = dlpar_attach_node(dn);
429 if (rc) {
430 dlpar_release_drc(drc_index);
431 dlpar_free_cc_nodes(dn);
432 return rc;
433 }
434
435 rc = dlpar_online_cpu(dn);

--- 223 unchanged lines hidden ---