From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753036Ab2GXJ0a (ORCPT ); Tue, 24 Jul 2012 05:26:30 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:59651 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966Ab2GXJ03 (ORCPT ); Tue, 24 Jul 2012 05:26:29 -0400 From: Amit Daniel Kachhap To: cpufreq@vger.kernel.org, "Rafael J. Wysocki" Cc: amit.kachhap@linaro.org, linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org Subject: [RESEND PATCH] [CPUFREQ] conservative: Initialise the cpu field during governor start Date: Tue, 24 Jul 2012 14:56:12 +0530 Message-Id: <1343121972-9130-1-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <201207232055.26506.rjw@sisk.pl> References: <201207232055.26506.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This change initialises the cpu id field of cs_cpu_dbs_info structure in conservative governor and keep this consistent with other governors. Similar initialisation is present in ondemand governor. Signed-off-by: Amit Daniel Kachhap --- drivers/cpufreq/cpufreq_conservative.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 235a340..a1563d7 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -504,6 +504,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy, j_dbs_info->prev_cpu_nice = kcpustat_cpu(j).cpustat[CPUTIME_NICE]; } + this_dbs_info->cpu = cpu; this_dbs_info->down_skip = 0; this_dbs_info->requested_freq = policy->cur; -- 1.7.1