ACPI/PPTT: Modify node flag detection to find last IDENTICAL
mainline inclusion from mainline-5.3-rc1 commit ed2b664f category: feature bugzilla: 16072 CVE: NA --------------------------- The ACPI specification implies that the IDENTICAL flag should be set on all non leaf nodes where the children are identical. This means that we need to be searching for the last node with the identical flag set rather than the first one. Since this flag is also dependent on the table revision, we need to add a bit of extra code to verify the table revision, and the next node's state in the traversal. Since we want to avoid function pointers here, lets just special case the IDENTICAL flag. Tested-by:Hanjun Gou <gouhanjun@huawei.com> Reviewed-by:
Sudeep Holla <sudeep.holla@arm.com> Signed-off-by:
Jeremy Linton <jeremy.linton@arm.com> Acked-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Hongbo Yao <yaohongbo@huawei.com> Reviewed-by:
Hanjun Guo <guohanjun@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment