From: Ross Lagerwall Subject: [PATCH v2 0/4] Support controlling the max C-state sub-state Date: Thu, 19 Jun 2014 12:16:45 +0100 Message-ID: <1403176609-13208-1-git-send-email-ross.lagerwall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , Liu Jinsong , Ian Jackson , Jan Beulich List-Id: xen-devel@lists.xenproject.org As discussed previously on the list, here is a patch series to allow controlling the maximum C-state sub-state. It doesn't fix the output of xenpm to correctly show the C-states sub-states (that can be for later). Changes since v1: - Use a single boot parameter to control max_cstate and max_csubstate. - Use max_csubstate rather than max_substate global variable, it is less generic. - Reuse sysctl sub-ops rather than adding new ones. - Limit the sub-state in the ACPI cpu_idle driver. - Use unsigned rather than signed in places - Update docs. - Formatting changes. Ross Lagerwall (4): x86/mwait_idle: Fix trace output x86: Allow limiting the max C-state sub-state tools/libxc: Alow controlling the max C-state sub-state xenpm: Allow controlling the max C-state sub-state docs/misc/xen-command-line.markdown | 8 +++++++- tools/libxc/xc_pm.c | 28 ++++++++++++++++++++++++---- tools/libxc/xenctrl.h | 3 +++ tools/misc/xenpm.c | 34 +++++++++++++++++++++++++++++++++- xen/arch/x86/acpi/cpu_idle.c | 20 +++++++++++++++++--- xen/arch/x86/cpu/mwait-idle.c | 8 +++++--- xen/drivers/acpi/pmstat.c | 8 ++++++-- xen/include/xen/acpi.h | 29 +++++++++++++++++++++++++---- 8 files changed, 120 insertions(+), 18 deletions(-) -- 1.9.3