ANDROID: GKI: arch: add stub symbols for boot_reason and cold_boot
These symbols are needed by some vendor drivers. So add stubs symbols to please those drivers. Bug: 153902877 Test: compile Signed-off-by: Rick Adams <rgadams@codeaurora.org> Signed-off-by: David Keitel <dkeitel@codeaurora.org> Signed-off-by: David Collins <collinsd@codeaurora.org> [willmcvicker: Squashed the following commits but only took ABI diffs:f699c92b61
msm: 8x55: put reason for boot in procfs from SMEMee67650037
sysctl: add cold_boot sysctl entryde98b0ac25
sysctl: add boot_reason and cold_boot sysctl entries for arm64] Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: I1c3eb7bcf9fb2ccae870a3fb4b9e31138609cf46
This commit is contained in:
parent
5b6a5354d0
commit
b3bae00cda
2 changed files with 16 additions and 0 deletions
|
@ -116,6 +116,14 @@ EXPORT_SYMBOL(elf_hwcap2);
|
||||||
char* (*arch_read_hardware_id)(void);
|
char* (*arch_read_hardware_id)(void);
|
||||||
EXPORT_SYMBOL(arch_read_hardware_id);
|
EXPORT_SYMBOL(arch_read_hardware_id);
|
||||||
|
|
||||||
|
/* Vendor stub */
|
||||||
|
unsigned int boot_reason;
|
||||||
|
EXPORT_SYMBOL_GPL(boot_reason);
|
||||||
|
|
||||||
|
/* Vendor stub */
|
||||||
|
unsigned int cold_boot;
|
||||||
|
EXPORT_SYMBOL_GPL(cold_boot);
|
||||||
|
|
||||||
#ifdef MULTI_CPU
|
#ifdef MULTI_CPU
|
||||||
struct processor processor __ro_after_init;
|
struct processor processor __ro_after_init;
|
||||||
#if defined(CONFIG_BIG_LITTLE) && defined(CONFIG_HARDEN_BRANCH_PREDICTOR)
|
#if defined(CONFIG_BIG_LITTLE) && defined(CONFIG_HARDEN_BRANCH_PREDICTOR)
|
||||||
|
|
|
@ -69,6 +69,14 @@ static struct resource *standard_resources;
|
||||||
|
|
||||||
phys_addr_t __fdt_pointer __initdata;
|
phys_addr_t __fdt_pointer __initdata;
|
||||||
|
|
||||||
|
/* Vendor stub */
|
||||||
|
unsigned int boot_reason;
|
||||||
|
EXPORT_SYMBOL_GPL(boot_reason);
|
||||||
|
|
||||||
|
/* Vendor stub */
|
||||||
|
unsigned int cold_boot;
|
||||||
|
EXPORT_SYMBOL_GPL(cold_boot);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Standard memory resources
|
* Standard memory resources
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue