Skip to content

Commit 499590c

Browse files
mmindpalmer-dabbelt
authored andcommitted
riscv: use BIT() macros in t-head errata init
Using the appropriate BIT macro makes the code better readable. Suggested-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: Guo Ren <guoren@kernel.org> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20220905111027.2463297-4-heiko@sntech.de Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent f055268 commit 499590c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/riscv/errata/thead/errata.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ static u32 thead_errata_probe(unsigned int stage,
4949
u32 cpu_req_errata = 0;
5050

5151
if (errata_probe_pbmt(stage, archid, impid))
52-
cpu_req_errata |= (1U << ERRATA_THEAD_PBMT);
52+
cpu_req_errata |= BIT(ERRATA_THEAD_PBMT);
5353

5454
if (errata_probe_cmo(stage, archid, impid))
55-
cpu_req_errata |= (1U << ERRATA_THEAD_CMO);
55+
cpu_req_errata |= BIT(ERRATA_THEAD_CMO);
5656

5757
return cpu_req_errata;
5858
}

0 commit comments

Comments
 (0)