summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorNick Kossifidis <mick@ics.forth.gr>2021-04-19 03:55:37 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-04-26 08:25:22 -0700
commitffe0e526126884cf036a6f724220f1f9b4094fd2 (patch)
treec954b603773d863c3198c0adde5e5c3e1ce27dc3 /block
parentfba8a8674f68a0628abae470dfcfbcb4a0d7a79e (diff)
RISC-V: Improve init_resources()
The kernel region is always present and we know where it is, no need to look for it inside the loop, just ignore it like the rest of the reserved regions within system's memory. Additionally, we don't need to call memblock_free inside the loop, as if called it'll split the region of pre-allocated resources in two parts, messing things up, just re-use the previous pre-allocated resource and free any unused resources after both loops finish. Signed-off-by: Nick Kossifidis <mick@ics.forth.gr> [Palmer: commit text] Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions