On Sun, 25 Apr 2021 05:56:53 +0000 Ruifeng Wang <ruifeng.w...@arm.com> wrote:
> Instead of polling for tail to be updated, use wfe instruction. > > Signed-off-by: Gavin Hu <gavin...@arm.com> > Signed-off-by: Ruifeng Wang <ruifeng.w...@arm.com> > Reviewed-by: Steve Capper <steve.cap...@arm.com> > Reviewed-by: Ola Liljedahl <ola.liljed...@arm.com> > Reviewed-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> > Acked-by: Konstantin Ananyev <konstantin.anan...@intel.com> Looks ok to me, but it does raise an interesting question. Shouldn't the original code have been using atomic load to look at ht->tail. This another place where "volatile considered harmful" applies.