cregit-Linux how code gets into the kernel

Release 4.14 arch/powerpc/platforms/pseries/kexec.c

/*
 *  Copyright 2006 Michael Ellerman, IBM Corporation
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */

#include <linux/kernel.h>
#include <linux/interrupt.h>

#include <asm/machdep.h>
#include <asm/page.h>
#include <asm/firmware.h>
#include <asm/kexec.h>
#include <asm/xics.h>
#include <asm/xive.h>
#include <asm/smp.h>
#include <asm/plpar_wrappers.h>

#include "pseries.h"


void pseries_kexec_cpu_down(int crash_shutdown, int secondary) { /* Don't risk a hypervisor call if we're crashing */ if (firmware_has_feature(FW_FEATURE_SPLPAR) && !crash_shutdown) { int ret; int cpu = smp_processor_id(); int hwcpu = hard_smp_processor_id(); if (get_lppaca()->dtl_enable_mask) { ret = unregister_dtl(hwcpu); if (ret) { pr_err("WARNING: DTL deregistration for cpu " "%d (hw %d) failed with %d\n", cpu, hwcpu, ret); } } ret = unregister_slb_shadow(hwcpu); if (ret) { pr_err("WARNING: SLB shadow buffer deregistration " "for cpu %d (hw %d) failed with %d\n", cpu, hwcpu, ret); } ret = unregister_vpa(hwcpu); if (ret) { pr_err("WARNING: VPA deregistration for cpu %d " "(hw %d) failed with %d\n", cpu, hwcpu, ret); } } if (xive_enabled()) xive_kexec_teardown_cpu(secondary); else xics_kexec_teardown_cpu(secondary); }

Contributors

PersonTokensPropCommitsCommitProp
Anton Blanchard7956.83%350.00%
Michael Ellerman4834.53%116.67%
Cédric Le Goater117.91%116.67%
Nathan Fontenot10.72%116.67%
Total139100.00%6100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Anton Blanchard7945.66%333.33%
Michael Ellerman6738.73%111.11%
Cédric Le Goater148.09%111.11%
Benjamin Herrenschmidt84.62%111.11%
Paul Mackerras21.16%111.11%
Deepthi Dharwar21.16%111.11%
Nathan Fontenot10.58%111.11%
Total173100.00%9100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.