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

Commit 12447db4 authored by Vinayak Menon's avatar Vinayak Menon
Browse files

soc: qcom: update max_pfn when adding blocks



max_pfn is used by drivers like page owner. Update it
when adding memory at boot.

Change-Id: I21b0776f8014068ccaf4c38ef0c50483b304485f
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 8586d7a7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#include <linux/kobject.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/bootmem.h>
#include <linux/mailbox_client.h>
#include <linux/mailbox/qmp.h>
#include <soc/qcom/rpm-smd.h>
@@ -455,6 +456,8 @@ static int mem_online_remaining_blocks(void)
			fail = 1;
		}
	}

	max_pfn = PFN_DOWN(memblock_end_of_DRAM());
	return fail;
}