eina: Actually call eina_cpu_init() and eina_cpu_shutdown()
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 16 Sep 2016 15:58:36 +0000 (10:58 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 16 Sep 2016 19:10:49 +0000 (14:10 -0500)
Without calling eina_cpu_init() the eina_cpu_features bits aren't
properly set up.

Let's call it and see if anything exciting happens.

src/lib/eina/eina_main.c

index 7238002..2827992 100644 (file)
@@ -303,6 +303,7 @@ eina_init(void)
           }
      }
 
+   eina_cpu_init();
    eina_cpu_count_internal();
 
    eina_log_timing(_eina_log_dom, EINA_LOG_STATE_STOP, EINA_LOG_STATE_INIT);
@@ -339,6 +340,7 @@ eina_shutdown(void)
              _mt_enabled = 0;
           }
 #endif
+        eina_cpu_shutdown();
      }
 
    return _eina_main_count;