From patchwork Tue Apr 23 14:41:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Blackwood X-Patchwork-Id: 2477831 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B13C7DF2E5 for ; Tue, 23 Apr 2013 14:47:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754763Ab3DWOrZ (ORCPT ); Tue, 23 Apr 2013 10:47:25 -0400 Received: from flmx07.ccur.com ([173.221.59.12]:1966 "EHLO flmx07.ccur.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754331Ab3DWOrZ (ORCPT ); Tue, 23 Apr 2013 10:47:25 -0400 X-Greylist: delayed 326 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Apr 2013 10:47:25 EDT Received: from [10.134.5.52] (10.134.5.52) by FLMX07.iccur.com (10.134.60.34) with Microsoft SMTP Server (TLS) id 8.2.255.0; Tue, 23 Apr 2013 10:41:56 -0400 Message-ID: <51769DB3.7030404@ccur.com> Date: Tue, 23 Apr 2013 09:41:55 -0500 From: John Blackwood User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: "Rafael J. Wysocki" CC: , Subject: [PATCH] cpufreq_conservative: initialize the cpu_dbs_info_s cpu field Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org In the cpufreq conservative module, the cpu field in the cpu_dbs_info_s structure was not being initialized, and thus all cpus were scheduling their do_dbs_timer() delayed work processing on cpu 0. Signed-off-by: John Blackwood --- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: b/drivers/cpufreq/cpufreq_conservative.c =================================================================== --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -506,6 +506,7 @@ static int cpufreq_governor_dbs(struct c } this_dbs_info->down_skip = 0; this_dbs_info->requested_freq = policy->cur; + this_dbs_info->cpu = cpu; mutex_init(&this_dbs_info->timer_mutex); dbs_enable++;