eal: add a new helper for wait until scheme
authorFeifei Wang <feifei.wang2@arm.com>
Mon, 1 Nov 2021 06:00:03 +0000 (14:00 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 3 Nov 2021 14:50:14 +0000 (15:50 +0100)
commit875f350924b8e5889e4c429a39a59e2859495731
treeeb06ff4ac471f81f12d682b473e3f58da8bf9cae
parentc78471cd061a0f64db006c538be34536bc66c12a
eal: add a new helper for wait until scheme

Add a new generic helper which is a macro for wait until scheme.

Furthermore, to prevent compilation warning in arm:
----------------------------------------------
'warning: implicit declaration of function ...'
----------------------------------------------
Delete 'undef' constructions for '__LOAD_EXC_xx', '__SEVL' and '__WFE'.
And add ‘__RTE_ARM’ for these macros to fix the namespace.
This is because original macros are undefine at the end of the file.
If the new macro calls them in other files, they will be seen as
'not defined'.

Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/eal/arm/include/rte_pause_64.h
lib/eal/include/generic/rte_pause.h