File tree Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ config ACPI_APEI_GHES
23
23
select ACPI_HED
24
24
select IRQ_WORK
25
25
select GENERIC_ALLOCATOR
26
+ select ARM_SDE_INTERFACE if ARM64
26
27
help
27
28
Generic Hardware Error Source provides a way to report
28
29
platform hardware errors (such as that from chipset). It
Original file line number Diff line number Diff line change @@ -1715,7 +1715,7 @@ void __init acpi_ghes_init(void)
1715
1715
{
1716
1716
int rc ;
1717
1717
1718
- sdei_init ();
1718
+ acpi_sdei_init ();
1719
1719
1720
1720
if (acpi_disabled )
1721
1721
return ;
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ config ARM_SCPI_PROTOCOL
31
31
config ARM_SDE_INTERFACE
32
32
bool "ARM Software Delegated Exception Interface (SDEI)"
33
33
depends on ARM64
34
- depends on ACPI_APEI_GHES
35
34
help
36
35
The Software Delegated Exception Interface (SDEI) is an ARM
37
36
standard for registering callbacks from the platform firmware
Original file line number Diff line number Diff line change @@ -1062,13 +1062,12 @@ static bool __init sdei_present_acpi(void)
1062
1062
return true;
1063
1063
}
1064
1064
1065
- void __init sdei_init (void )
1065
+ void __init acpi_sdei_init (void )
1066
1066
{
1067
1067
struct platform_device * pdev ;
1068
1068
int ret ;
1069
1069
1070
- ret = platform_driver_register (& sdei_driver );
1071
- if (ret || !sdei_present_acpi ())
1070
+ if (!sdei_present_acpi ())
1072
1071
return ;
1073
1072
1074
1073
pdev = platform_device_register_simple (sdei_driver .driver .name ,
@@ -1081,6 +1080,12 @@ void __init sdei_init(void)
1081
1080
}
1082
1081
}
1083
1082
1083
+ static int __init sdei_init (void )
1084
+ {
1085
+ return platform_driver_register (& sdei_driver );
1086
+ }
1087
+ arch_initcall (sdei_init );
1088
+
1084
1089
int sdei_event_handler (struct pt_regs * regs ,
1085
1090
struct sdei_registered_event * arg )
1086
1091
{
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ int sdei_unregister_ghes(struct ghes *ghes);
46
46
/* For use by arch code when CPU hotplug notifiers are not appropriate. */
47
47
int sdei_mask_local_cpu (void );
48
48
int sdei_unmask_local_cpu (void );
49
- void __init sdei_init (void );
49
+ void __init acpi_sdei_init (void );
50
50
void sdei_handler_abort (void );
51
51
#else
52
52
static inline int sdei_mask_local_cpu (void ) { return 0 ; }
53
53
static inline int sdei_unmask_local_cpu (void ) { return 0 ; }
54
- static inline void sdei_init (void ) { }
54
+ static inline void acpi_sdei_init (void ) { }
55
55
static inline void sdei_handler_abort (void ) { }
56
56
#endif /* CONFIG_ARM_SDE_INTERFACE */
57
57
You can’t perform that action at this time.
0 commit comments