summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/dmi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/dmi.h b/include/linux/dmi.h
index 46e151172d95..0bade156e908 100644
--- a/include/linux/dmi.h
+++ b/include/linux/dmi.h
@@ -147,4 +147,13 @@ static inline const struct dmi_system_id *
#endif
+static inline int dmi_get_bios_year(void)
+{
+ int year;
+
+ dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL);
+
+ return year;
+}
+
#endif /* __DMI_H__ */