aboutsummaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2021-04-25 09:43:44 -0700
committerLeandro Pereira <leandro@hardinfo.org>2021-04-25 09:43:44 -0700
commit2ad914dc738c01c524673a67ae71edf828005941 (patch)
tree8151c99bd77ce80c9ce2f78bb71ed7f100da7b5f /modules/devices.c
parent5ddf73edf0822f22aa091325b89d286161ad3340 (diff)
Make CPU flags database updatable
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/devices.c b/modules/devices.c
index 73c18a90..81a2facb 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -857,6 +857,12 @@ void hi_module_init(void)
.name = N_("Update SD card manufacturer information"),
.file_name = "sdcard.ids",
},
+#ifdef ARCH_x86
+ {
+ .name = N_("Update CPU flags database"),
+ .file_name = "cpuflags.json",
+ },
+#endif
};
gint i;
@@ -866,6 +872,11 @@ void hi_module_init(void)
init_cups();
sensor_init();
udisks2_init();
+
+#ifdef ARCH_x86
+ void cpuflags_x86_init(void);
+ cpuflags_x86_init();
+#endif
}
void hi_module_deinit(void)