forked from luck/tmp_suning_uos_patched
cpufreq: dt: Mark platdev machines array as __initconst
The machines array in cpufreq-dt-platdev is used only once at boot time and so should be marked with __initconst, so that kernel can free up memory used for it, if required. Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
394cb8316b
commit
e92bb16674
@ -11,7 +11,7 @@
|
|||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
static const struct of_device_id machines[] = {
|
static const struct of_device_id machines[] __initconst = {
|
||||||
{ .compatible = "samsung,exynos3250", },
|
{ .compatible = "samsung,exynos3250", },
|
||||||
{ .compatible = "samsung,exynos4210", },
|
{ .compatible = "samsung,exynos4210", },
|
||||||
{ .compatible = "samsung,exynos4212", },
|
{ .compatible = "samsung,exynos4212", },
|
||||||
|
Loading…
Reference in New Issue
Block a user