ARC: SMP: simplify CPU mask generation with BIT_MASK

Simplify CPU mask generation by replacing GENMASK with BIT_MASK.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2023-03-20 19:57:56 +00:00 committed by Alberto Escolar
parent 16e9362ba0
commit d4d0907ede

View file

@ -67,7 +67,7 @@ static int arc_shared_intc_update_post_smp(const struct device *unused)
for (uint32_t i = 0; i < (CONFIG_NUM_IRQS - ARC_CONNECT_IDU_IRQ_START); i++) {
/* TODO: take arc_connect_spinlock one time to avoid locking/unlocking every time */
z_arc_connect_idu_set_dest(i, GENMASK((arch_num_cpus() - 1), 0));
z_arc_connect_idu_set_dest(i, BIT_MASK(arch_num_cpus()));
}
z_arc_connect_idu_enable();