]> git.baikalelectronics.ru Git - kernel.git/commit
powercap / RAPL: mark rapl_ids array as __initconst
authorMathias Krause <minipli@googlemail.com>
Wed, 25 Mar 2015 21:15:52 +0000 (22:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 11 Apr 2015 00:21:15 +0000 (02:21 +0200)
commit8279dfee4f0f5b575b4e8a37ae630078e8e0e143
tree8bd9e2c1611531f01be3a8d3564e64199a620fbb
parentea14911728ca463bb5a084c0d740deada761e22a
powercap / RAPL: mark rapl_ids array as __initconst

The RAPL ids are only tested in rapl_init() which is itself an __init
function. For the MODULE_DEVICE_TABLE() file2alias doesn't care about
the section, just about the symbol name. Therefore it's safe to mark the
rapl_ids[] array as __initconst so its memory can be released after
initialization is done.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/intel_rapl.c