diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2018-09-20 21:44:21 -0400 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-09-27 12:18:08 +0300 |
commit | f7eaf3fb9d10cc72669fe8c8bd204087a65e50f6 (patch) | |
tree | c362a4cbfa28eb5e56528eccd6a1fcdabb439135 /drivers/firmware | |
parent | 1d0c3fd01afbd52cc365460d46176b6b4131960d (diff) | |
download | linux-f7eaf3fb9d10cc72669fe8c8bd204087a65e50f6.tar.bz2 |
platform/x86: acerhdf: restructure to allow large BIOS table be __initconst
There is a table of Vendor/Model/Version {control data} in this driver,
but outside of the initial probe, the V/M/V is never used again, and
neither are any of the entries for platforms other than the one which
matches the running target.
By simply storing the {control data} for the matched platform, we can
mark the large table __initconst, which reduces the loaded driver size
by 20 percent.
Before:
root@gw:~/git/linux-head# lsmod
Module Size Used by
acerhdf 20480 0
root@gw:~/git/linux-head#
After:
root@gw:~/git/linux-head# lsmod
Module Size Used by
acerhdf 16384 0
root@gw:~/git/linux-head#
Cc: Peter Feuerer <peter@piie.net>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Andy Shevchenko <andy@infradead.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Peter Feuerer <peter@piie.net>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions