kexec.c (f94f3cb37a1c4d44dd2070cc4a6165689bda9c92) kexec.c (0b05ac6e24807f0c26f763b3a546c0bcbf84125f)
1/*
2 * Copyright 2006 Michael Ellerman, IBM Corporation
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 */
9
1/*
2 * Copyright 2006 Michael Ellerman, IBM Corporation
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 */
9
10#include <linux/kernel.h>
11#include <linux/interrupt.h>
12
10#include <asm/machdep.h>
11#include <asm/page.h>
12#include <asm/firmware.h>
13#include <asm/kexec.h>
14#include <asm/mpic.h>
13#include <asm/machdep.h>
14#include <asm/page.h>
15#include <asm/firmware.h>
16#include <asm/kexec.h>
17#include <asm/mpic.h>
18#include <asm/xics.h>
15#include <asm/smp.h>
16
17#include "pseries.h"
19#include <asm/smp.h>
20
21#include "pseries.h"
18#include "xics.h"
19#include "plpar_wrappers.h"
20
21static void pseries_kexec_cpu_down(int crash_shutdown, int secondary)
22{
23 /* Don't risk a hypervisor call if we're crashing */
24 if (firmware_has_feature(FW_FEATURE_SPLPAR) && !crash_shutdown) {
25 unsigned long addr;
26

--- 37 unchanged lines hidden ---
22#include "plpar_wrappers.h"
23
24static void pseries_kexec_cpu_down(int crash_shutdown, int secondary)
25{
26 /* Don't risk a hypervisor call if we're crashing */
27 if (firmware_has_feature(FW_FEATURE_SPLPAR) && !crash_shutdown) {
28 unsigned long addr;
29

--- 37 unchanged lines hidden ---