Intel: Move MCRS ResourceTemplate outside of _CRS method
On Broadwell, this reduces the number of 'remarks' in the IASL build
from 222 to 3.
Fixes these remarks:
Object is not referenced (Name is within method [_CRS])
The ACPI compiler is trying to be helpful in letting us know
that we're not using various fields in the MCRS ResourceTemplate
when we define it inside of the _CRS method. Since we're not
intending to use those objects in the method, it shouldn't be an
issue, but the warning is annoying and can mask real issues.
Moving the creation of the MCRS object to outside of the CRS
method and referencing it from there solves this problem.
This change was made for fsp_baytrail in commit 2eaa0d49
fsp_baytrail: Fix ACPI 'Object is not referenced' warnings
Signed-off-by: Martin Roth <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <email@example.com>
Reviewed-by: Alexandru Gagniuc <firstname.lastname@example.org>
Reviewed-by: Stefan Reinauer <email@example.com>
9 files changed