From: Mathias Krause Date: Wed, 25 Mar 2015 21:15:52 +0000 (+0100) Subject: powercap / RAPL: mark rapl_ids array as __initconst X-Git-Tag: omap-for-v4.2/o2_dc~134^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea85dbcaec0ff29f2c3f84be4c8a01a94e8bd449;p=pandora-kernel.git 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 Acked-by: Jacob Pan Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed