X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_cpuflags.h;h=abd48005fd73a4291c95cae23f5d4678a8391833;hb=dec5e73d78e011af5c1bd4e18ae406df505db13b;hp=72c3f2b63ba3cdc918b9a2c778107687aace9d46;hpb=af75078fece3615088e561357c1e97603e43a5fe;p=dpdk.git diff --git a/lib/librte_eal/common/include/rte_cpuflags.h b/lib/librte_eal/common/include/rte_cpuflags.h index 72c3f2b63b..abd48005fd 100644 --- a/lib/librte_eal/common/include/rte_cpuflags.h +++ b/lib/librte_eal/common/include/rte_cpuflags.h @@ -30,7 +30,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * version: DPDK.L.1.2.3-3 */ #ifndef _RTE_CPUFLAGS_H_ @@ -157,15 +156,23 @@ enum rte_cpu_flag_t { * Function for checking a CPU flag availability * * @param flag - * CPU flag to query CPU for + * CPU flag to query CPU for * @return - * 1 if flag is available - * 0 if flag is not available - * -ENOENT if flag is invalid + * 1 if flag is available + * 0 if flag is not available + * -ENOENT if flag is invalid */ int rte_cpu_get_flag_enabled(enum rte_cpu_flag_t flag); +/** + * This function checks that the currently used CPU supports the CPU features + * that were specified at compile time. It is called automatically within the + * EAL, so does not need to be used by applications. + */ +void +rte_cpu_check_supported(void); + #ifdef __cplusplus } #endif