diff options
author | Andy Shevchenko <[email protected]> | 2018-02-22 14:59:20 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-02-23 08:20:30 +0100 |
commit | 492a1abd61e4b4f78c1c5804840a304a9e32da04 (patch) | |
tree | 326e956e0e6b448dffa183819cd3b474126e3a31 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 24e8db62c135e142e23bec597adb135bd6a8828f (diff) |
dmi: Introduce the dmi_get_bios_year() helper function
The pattern to only extract the year portion of date is used in
several places and more users may come.
By using this helper they may create slightly cleaner code.
Signed-off-by: Andy Shevchenko <[email protected]>
[ Minor stylistic cleanup. ]
Cc: Bjorn Helgaas <[email protected]>
Cc: Jean Delvare <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rafael J. Wysocki <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions