nb/intel/gm45/pm.c: Make clang happy
Clang complains that the terniary '?' operator is executed before the bitwise '|'. This is true and desired in this case. Being explicit about won't hurt however. Change-Id: I27d1fc1c19e1dab3d1c82e407151eaa46f8c7b03 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62172 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
0dd0368740
commit
cdad992f0f
|
@ -171,7 +171,7 @@ void init_pm(const sysinfo_t *const sysinfo, int do_freq_scaling_cfg)
|
||||||
mchbar_setbits32(0xf80, 1 << 31);
|
mchbar_setbits32(0xf80, 1 << 31);
|
||||||
|
|
||||||
mchbar_write32(0x40, (mchbar_read32(0x40) & ~(0x3f << 24)) |
|
mchbar_write32(0x40, (mchbar_read32(0x40) & ~(0x3f << 24)) |
|
||||||
(sysinfo->cores == 4) ? (1 << 24) : 0);
|
((sysinfo->cores == 4) ? (1 << 24) : 0));
|
||||||
|
|
||||||
mchbar_clrbits32(0x40, 1 << 19);
|
mchbar_clrbits32(0x40, 1 << 19);
|
||||||
mchbar_setbits32(0x40, 1 << 13);
|
mchbar_setbits32(0x40, 1 << 13);
|
||||||
|
|
Loading…
Reference in New Issue