File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#include <linux/acpi_pmtmr.h>
12
12
#include <linux/kernel.h>
13
+ #include <linux/reboot.h>
13
14
#include <asm/apic.h>
14
15
#include <asm/cpu.h>
15
16
#include <asm/hypervisor.h>
16
17
#include <asm/i8259.h>
18
+ #include <asm/reboot.h>
17
19
#include <asm/setup.h>
18
20
19
21
static __initdata struct jailhouse_setup_data setup_data ;
@@ -77,6 +79,12 @@ static void __init jailhouse_get_smp_config(unsigned int early)
77
79
smp_found_config = 1 ;
78
80
}
79
81
82
+ static void jailhouse_no_restart (void )
83
+ {
84
+ pr_notice ("Jailhouse: Restart not supported, halting\n" );
85
+ machine_halt ();
86
+ }
87
+
80
88
static void __init jailhouse_init_platform (void )
81
89
{
82
90
u64 pa_data = boot_params .hdr .setup_data ;
@@ -96,6 +104,8 @@ static void __init jailhouse_init_platform(void)
96
104
97
105
legacy_pic = & null_legacy_pic ;
98
106
107
+ machine_ops .emergency_restart = jailhouse_no_restart ;
108
+
99
109
while (pa_data ) {
100
110
mapping = early_memremap (pa_data , sizeof (header ));
101
111
memcpy (& header , mapping , sizeof (header ));
You can’t perform that action at this time.
0 commit comments