mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
soc: qcom: pil: Do not do complete ramdump for minidump elf32
If minidump is configured to be ELF32, avoid using complete ramdump property, so that only the required segments area is dumped. Change-Id: I34fe359204309fda47d0a665ca641cb042d87054 Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org> Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
This commit is contained in:
parent
b82c85fc28
commit
d7b8ff66af
3 changed files with 34 additions and 6 deletions
|
|
@ -39,6 +39,8 @@ extern int do_elf_ramdump(void *handle, struct ramdump_segment *segments,
|
|||
int nsegments);
|
||||
extern int do_minidump(void *handle, struct ramdump_segment *segments,
|
||||
int nsegments);
|
||||
extern int do_minidump_elf32(void *handle, struct ramdump_segment *segments,
|
||||
int nsegments);
|
||||
|
||||
#else
|
||||
static inline void *create_ramdump_device(const char *dev_name,
|
||||
|
|
@ -62,6 +64,19 @@ static inline int do_elf_ramdump(void *handle, struct ramdump_segment *segments,
|
|||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static inline int do_minidump(void *handle, struct ramdump_segment *segments,
|
||||
int nsegments)
|
||||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static inline int do_minidump_elf32(void *handle,
|
||||
struct ramdump_segment *segments, int nsegments)
|
||||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_MSM_SUBSYSTEM_RESTART */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue