Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3bae00c authored by Rick Adams's avatar Rick Adams Committed by Will McVicker
Browse files

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: default avatarRick Adams <rgadams@codeaurora.org>
Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
[willmcvicker: Squashed the following commits but only took ABI diffs:
  f699c92b msm: 8x55: put reason for boot in procfs from SMEM
  ee676500 sysctl: add cold_boot sysctl entry
  de98b0ac sysctl: add boot_reason and cold_boot sysctl entries for arm64]
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Change-Id: I1c3eb7bcf9fb2ccae870a3fb4b9e31138609cf46
parent 5b6a5354
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -116,6 +116,14 @@ EXPORT_SYMBOL(elf_hwcap2);
char* (*arch_read_hardware_id)(void);
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
struct processor processor __ro_after_init;
#if defined(CONFIG_BIG_LITTLE) && defined(CONFIG_HARDEN_BRANCH_PREDICTOR)
+8 −0
Original line number Diff line number Diff line
@@ -69,6 +69,14 @@ static struct resource *standard_resources;

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
 */