Skip to content
Snippets Groups Projects
Commit 24c46ed6 authored by Cheonho Park's avatar Cheonho Park
Browse files

lrdp_v2: Fix lpm cpu_possible_bits for kernel 4.9

cpu_possible_bits / cpu_online_bits are not available at kernel 4.9
replace them with __cpu_possible/online_mask

Change-Id: I672798f27c24991230d31698e4d318a8af56c443
parent d1d26dc6
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,8 @@ class lpm(RamParser):
def get_bits(self):
bits_addr = self.ramdump.address_of('cpu_possible_bits')
if bits_addr is None:
bits_addr = self.ramdump.address_of('__cpu_possible_mask')
if bits_addr is None:
self.output.append("NOTE: 'cpu_possible_bits' not found")
return
......@@ -39,6 +41,8 @@ class lpm(RamParser):
bits_addr = self.ramdump.address_of('cpu_online_bits')
if bits_addr is None:
bits_addr = self.ramdump.address_of('__cpu_online_mask')
if bits_addr is None:
self.output.append("NOTE: 'cpu_online_bits' not found")
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment