drivers: intc_gicv3_its: fix sleep issue in pre-kernel
GIC v3 ITS is initialized in pre-kernel stage in which sleep function can't work yet, so use busy delay in pre-kernel stage and use sleep delay in post-kernel stage. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
parent
970e0181f1
commit
b210fa0237
@ -337,7 +337,11 @@ static int its_post_command(struct gicv3_its_data *data, struct its_cmd_block *c
|
||||
rd_idx, idx, wr_idx);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
k_usleep(1);
|
||||
if (k_is_pre_kernel()) {
|
||||
k_busy_wait(1);
|
||||
} else {
|
||||
k_usleep(1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user