From patchwork Fri Apr 22 11:28:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66435 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp663493qge; Fri, 22 Apr 2016 04:29:26 -0700 (PDT) X-Received: by 10.98.87.15 with SMTP id l15mr27809679pfb.16.1461324563877; Fri, 22 Apr 2016 04:29:23 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si7302801pai.76.2016.04.22.04.29.23; Fri, 22 Apr 2016 04:29:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753623AbcDVL3S (ORCPT + 29 others); Fri, 22 Apr 2016 07:29:18 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35283 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410AbcDVL3O (ORCPT ); Fri, 22 Apr 2016 07:29:14 -0400 Received: by mail-pa0-f44.google.com with SMTP id fs9so39240853pac.2 for ; Fri, 22 Apr 2016 04:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=QXwt/xk9zHtQIVcuAyOP7PuQ9DJ153sw238ma4NjBuw=; b=hRvUTF1SHh7QuxF/rKZxcngaboIC1yWjiwZw14DNPYSSNBqjt3P3W1LcXiAcPprnmK Oh+ZxwooDBxkL+ItCogdvnV8dPRXRkq/lO8qBt8jRYv0RkZCRaXvn6H1KmCJ7+XkMWeL OS/aDFF608jlio57FbEJEFdZHQ0AOI8etjvnE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=QXwt/xk9zHtQIVcuAyOP7PuQ9DJ153sw238ma4NjBuw=; b=BG2FclylNXgFIQSYY50U2lYJnYcHfuxLrP4tG+wgz9TiroejLBcYI3pNstQsQLZrOB Qp4bFO4mvxlZ0kMTotJv69DkgypbcZN0ro2tZqD0xPSi1Nz69iuI0S9b10i2NXognBQz hGZFqUT58/A0BnaY/3yGgkpKmFPbpqY/elblcr0hp4PCRW7fYgoiv4aag/TkKC3G2xt8 BmwZIQub7hvYa9idPGriEFCvZlAcgm+t8i8B+aC2Z/86UmPTcpQTpeTjMMx10wvljuB7 rIVeEWo9CQdmikbF4rRVKTFDEN76GoYK0PXvrLjXmCLzcjNthvtGIVJ8kC88xIaXc0S1 BiRQ== X-Gm-Message-State: AOPr4FXj38Dg1Vl5v6Ip8Gu+9bb5gIe3NbRgm/lI5AtUz62+uI5eTzhnDToXxflBG++hW9Kl X-Received: by 10.66.227.229 with SMTP id sd5mr27948222pac.115.1461324553188; Fri, 22 Apr 2016 04:29:13 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id u64sm7757400pfa.86.2016.04.22.04.29.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 04:29:12 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, geert@linux-m68k.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 1/9] cpufreq: dt: Mark platdev machines array as __initconst Date: Fri, 22 Apr 2016 16:58:39 +0530 Message-Id: X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt-platdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.1.410.g6faf27b diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index f2ae7ad99a3c..00da8c8bee6c 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -11,7 +11,7 @@ #include #include -static const struct of_device_id machines[] = { +static const struct of_device_id machines[] __initconst = { { .compatible = "samsung,exynos3250", }, { .compatible = "samsung,exynos4210", }, { .compatible = "samsung,exynos4212", },