neutrino: put hw_caps init after cs_api_init()

This commit is contained in:
Stefan Seyfried
2013-05-12 17:23:34 +02:00
parent 0219f7f135
commit 7459630565

View File

@@ -1823,6 +1823,10 @@ TIMER_START();
cs_register_messenger(CSSendMessage); cs_register_messenger(CSSendMessage);
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime); fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
g_info.hw_caps = get_hwcaps();
can_deepstandby = g_info.hw_caps->can_shutdown;
g_info.has_fan = g_info.hw_caps->has_fan;
g_Locale = new CLocaleManager; g_Locale = new CLocaleManager;
int loadSettingsErg = loadSetup(NEUTRINO_SETTINGS_FILE); int loadSettingsErg = loadSetup(NEUTRINO_SETTINGS_FILE);
@@ -3809,10 +3813,6 @@ int main(int argc, char **argv)
tzset(); tzset();
g_info.hw_caps = get_hwcaps();
can_deepstandby = g_info.hw_caps->can_shutdown;
g_info.has_fan = g_info.hw_caps->has_fan;
return CNeutrinoApp::getInstance()->run(argc, argv); return CNeutrinoApp::getInstance()->run(argc, argv);
} }