mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "soc: qcom: Remove reserved-memory free operation for xbl log dump"
This commit is contained in:
commit
284fd13596
1 changed files with 0 additions and 13 deletions
|
|
@ -29,17 +29,6 @@ static ssize_t xbl_log_show(struct file *fp,
|
|||
static struct bin_attribute attribute =
|
||||
__BIN_ATTR(xbl_log, 0444, xbl_log_show, NULL, 0);
|
||||
|
||||
static void free_xbl_log_buf(phys_addr_t paddr, size_t size)
|
||||
{
|
||||
unsigned long pfn_start = 0, pfn_end = 0, pfn_idx = 0;
|
||||
|
||||
memblock_free(paddr, size);
|
||||
pfn_start = paddr >> PAGE_SHIFT;
|
||||
pfn_end = (paddr + size) >> PAGE_SHIFT;
|
||||
for (pfn_idx = pfn_start; pfn_idx < pfn_end; pfn_idx++)
|
||||
free_reserved_page(pfn_to_page(pfn_idx));
|
||||
}
|
||||
|
||||
static int xbl_log_kthread(void *arg)
|
||||
{
|
||||
int err = 1;
|
||||
|
|
@ -104,8 +93,6 @@ static int xbl_log_kthread(void *arg)
|
|||
memcpy(xbl_log_buf, addr, xbl_log_size);
|
||||
xbl_log_buf[xbl_log_size-1] = '\0';
|
||||
memunmap(addr);
|
||||
if (xbl_log_size)
|
||||
free_xbl_log_buf(xbl_log_paddr, xbl_log_size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue