update copyright date to 2013
[dpdk.git] / lib / librte_eal / common / include / rte_cpuflags.h
index cb22396..d1dd516 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without 
@@ -156,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