Message ID | 8f16b7fb6292d095f27181494e99b336ddce5fb7.1519620578.git.viresh.kumar@linaro.org |
---|---|
State | Accepted |
Commit | b6663622a39742333c0bc3bf7d99df4ba8865f34 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230374lja; Sun, 25 Feb 2018 21:09:57 -0800 (PST) X-Google-Smtp-Source: AH8x226oN4xhD10jKPBLUR+eOVUTaE5ejc9DHuhdMEwJVAhPB2ICp9YmBnDTXDDh/vB020fu9zYA X-Received: by 10.98.171.24 with SMTP id p24mr9373088pff.71.1519621797430; Sun, 25 Feb 2018 21:09:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621797; cv=none; d=google.com; s=arc-20160816; b=XRyec2U2SwVug5yFkh/w+t58Qch9ELvKTvm2fleAZImeYqVmf1048OTAMdwKt/8HGC Ap2Xw0M891ARi3pKbuXyh+P1L7jpv9eRef4CS0z7EjZHypjjm0sl4D2QkQQXN+He3qT/ GJpnYv4pfe7Ko0+APNHjK8H8m6xFQoPRGKVY6+jkcldO7VYGhqkpwAgsz+AQbDbrh+wR Sxc8G56cJ3LKdaUrXgi0hIaXYb/D1QnHO25AkutncBvoWqTDQDwLEcyA/kKFYeWTevBj NmC71pS6eBIc1vawD8vWERYAPYlX+qAcBjaMltVbPSqXSPaGI/p4FWerO/Na/AP3KyGl sLyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=U4POzxsyRiOcOhh4vVX9bya0cGAo3jqjf6nVErE6acI=; b=CuS9NwZUS4g7CcopirCI4bLntunSg4/mAynBlDUz1oIuZtIxqXVJ+lDY9SCEyUJOq/ 8D9upNvYBFcGdMix3qG8StaFWFGKHwhZ+stbLXC5MiWW0koFakm/0xa4783fJ+KZzQ9G MBtCypIfFuFM2zbGBvFa7bOxYJdQXUadHbghlmSjT6Pdn5z42HzwAy8eG2JkXSFYddNo lhvAcIkDbwYqXytY0G0zd9+qF874W1+xdnRpUO373m36AzheD9gW0QhhdaCtJ+mMdoI8 VkqfewNJ3uA/9LOr4/F4IdEHaHvr2wE+yAW5sw/6FUepcAn5vUZZXvWyOQWjL7NokMP1 DrvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D5/nnAAv; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-pm-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h32-v6si6199354pld.217.2018.02.25.21.09.57; Sun, 25 Feb 2018 21:09:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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 header.s=google header.b=D5/nnAAv; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751946AbeBZFJ4 (ORCPT <rfc822;thara.gopinath@linaro.org> + 11 others); Mon, 26 Feb 2018 00:09:56 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:42991 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbeBZFJ4 (ORCPT <rfc822;linux-pm@vger.kernel.org>); Mon, 26 Feb 2018 00:09:56 -0500 Received: by mail-pg0-f67.google.com with SMTP id y8so5772796pgr.9 for <linux-pm@vger.kernel.org>; Sun, 25 Feb 2018 21:09:55 -0800 (PST) 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=U4POzxsyRiOcOhh4vVX9bya0cGAo3jqjf6nVErE6acI=; b=D5/nnAAvYMjduiulLr7T2fSPzy1WKvKploCiqBoQ6L9goUNatBCLiygeRSrkcdL/s5 a29FABnSAu9C5bWYyhhdAOjAkd1Yh+LKfeo2Eupb70zVXgRImxFXQtpcjG8JrANLjdZX IZrc1oKjy6t4fxS5bIyXwmhEb9L6ObO1k6PX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=U4POzxsyRiOcOhh4vVX9bya0cGAo3jqjf6nVErE6acI=; b=h8W4BHGBmyn/K0YYyTM1PsFC7S8ewABdyRPOOaRzVmiYYmwP7JmyM1RBe2FQoD9y1K mpdOuMf1gJDGgJGVtjhXrSQ/gvNHhKrVOEa5p8zKUTnOO1Pkt7gpzFBKfmgLhpxycL+X 0O5ar9TVhJxIYKoE4297p03x2NaScm0Z4a3iZxpzgn1I2Wowxht0KKOU7OJy1zwvI9lQ zF17ZV6nkEdi45NvBVRHngaHLY0X2kh5PQ6PcRIvAj8AwqbE/vJdUZklvtfRzQ2JaLuk e8aoVdubt4cOuv87AHED+P0qHRq5LdkD9LshmAwegpX9Q6z7z6NmNms5esrbA8BYHMVE UnCw== X-Gm-Message-State: APf1xPAAIECevCoEL/WGDn49ZqJ7kAO4ilOfM2yCmN5f2atPRLKDrXSo B1A/GvBj0NEdRk6SvLTMyvVaKI5yuFw= X-Received: by 10.98.157.18 with SMTP id i18mr9421896pfd.62.1519621795627; Sun, 25 Feb 2018 21:09:55 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id m3sm13539772pgd.3.2018.02.25.21.09.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:09:55 -0800 (PST) From: Viresh Kumar <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH 10/27] cpufreq: ia64-acpi: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:38:53 +0530 Message-Id: <8f16b7fb6292d095f27181494e99b336ddce5fb7.1519620578.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: <cover.1519620578.git.viresh.kumar@linaro.org> References: <cover.1519620578.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1519620578.git.viresh.kumar@linaro.org> References: <cover.1519620578.git.viresh.kumar@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
cpufreq: Stop validating cpufreq table in drivers
|
expand
|
diff --git a/drivers/cpufreq/ia64-acpi-cpufreq.c b/drivers/cpufreq/ia64-acpi-cpufreq.c index a757c0a1e7b5..7974a2fdb760 100644 --- a/drivers/cpufreq/ia64-acpi-cpufreq.c +++ b/drivers/cpufreq/ia64-acpi-cpufreq.c @@ -270,10 +270,7 @@ acpi_cpufreq_cpu_init ( } } - result = cpufreq_table_validate_and_show(policy, freq_table); - if (result) { - goto err_freqfree; - } + policy->freq_table = freq_table; /* notify BIOS that we exist */ acpi_processor_notify_smm(THIS_MODULE); @@ -296,8 +293,6 @@ acpi_cpufreq_cpu_init ( return (result); - err_freqfree: - kfree(freq_table); err_unreg: acpi_processor_unregister_performance(cpu); err_free:
The cpufreq core is already validating the CPU frequency table after calling the ->init() callback of the cpufreq drivers and the drivers don't need to do the same anymore. Though they need to set the policy->freq_table field directly from the ->init() callback now. Stop validating the frequency table from ia64-acpi driver. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/ia64-acpi-cpufreq.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.15.0.194.g9af6a3dea062