From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: [PATCH 00/21] CPUIdle: Minor cleanups for 3.13 Date: Sun, 22 Sep 2013 06:50:52 +0530 Message-ID: Return-path: Received: from mail-pb0-f42.google.com ([209.85.160.42]:39382 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752285Ab3IVBVX (ORCPT ); Sat, 21 Sep 2013 21:21:23 -0400 Received: by mail-pb0-f42.google.com with SMTP id un15so1828254pbc.15 for ; Sat, 21 Sep 2013 18:21:22 -0700 (PDT) Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: rjw@sisk.pl, daniel.lezcano@linaro.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Viresh Kumar Hi Rafael/Daniel, This is a small cleanup patchset for CPUIdle which can go in 3.13 if it looks okay to you guys.. Mostly trivial patches but few are doing good/significant changes. Tested on my thinkpad with suspend/resume and didn't found any broken stuff with it. I a not very sure about this patch (As I don't know about all aspects of CPUIdle framework): cpuidle: don't call poll_idle_init() for every cpu -- viresh Viresh Kumar (21): cpuidle: fix indentation of cpumask cpuidle: Fix comments in cpuidle core cpuidle: make __cpuidle_get_cpu_driver() inline cpuidle: make __cpuidle_device_init() return void cpuidle: make __cpuidle_driver_init() return void cpuidle: rearrange code in __cpuidle_driver_init() cpuidle: rearrange __cpuidle_register_device() to keep minimal exit points cpuidle: use cpuidle_disabled() instead of "off" cpuidle: merge two if() statements for checking error cases cpuidle: reduce code duplication inside cpuidle_idle_call() cpuidle: replace multiline statements with single line in cpuidle_idle_call() cpuidle: call cpuidle_get_driver() from after taking cpuidle_driver_lock cpuidle: use drv instead of cpuidle_driver in show_current_driver() cpuidle: coupled: don't compare cpu masks unnecessarily cpuidle: free all state kobjects from cpuidle_free_state_kobj() cpuidle: avoid unnecessary kzalloc/free of struct cpuidle_device_kobj cpuidle: avoid unnecessary kzalloc/free of struct cpuidle_driver_kobj cpuidle: don't call poll_idle_init() for every cpu cpuidle: create list of registered drivers cpuidle: don't calculate time-diff if entered_state == 0 cpuidle: change governor from within cpuidle_replace_governor() drivers/cpuidle/coupled.c | 9 +-- drivers/cpuidle/cpuidle.c | 95 +++++++------------------ drivers/cpuidle/driver.c | 171 ++++++++++++++++++++------------------------- drivers/cpuidle/governor.c | 24 +++---- drivers/cpuidle/sysfs.c | 74 +++++++------------- include/linux/cpuidle.h | 25 +++++-- 6 files changed, 161 insertions(+), 237 deletions(-) -- 1.7.12.rc2.18.g61b472e