From patchwork Wed Jul 25 03:41:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1234471 Return-Path: X-Original-To: patchwork-linux-acpi@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 3A28FDFFC1 for ; Wed, 25 Jul 2012 03:44:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932981Ab2GYDnN (ORCPT ); Tue, 24 Jul 2012 23:43:13 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:46154 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932979Ab2GYDnI (ORCPT ); Tue, 24 Jul 2012 23:43:08 -0400 Received: by mail-qc0-f174.google.com with SMTP id o28so169000qcr.19 for ; Tue, 24 Jul 2012 20:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:reply-to:organization; bh=onx7DqEJMdlNIhBrHtZDkhYio2M4NLIkQk+gNpn52fU=; b=kMh9Sd6KvYEwie1jkMNx+nGagfvz/xPZUGu+pCE0BmtVTYnK6xuXTi9xwdehy7XWdl 2yFBoR9/Fkrtfpymc1ttb+eUt+S9wURf4oKsseBmhodQ0Lw5F1AQJgeJ4MKMDr4XpRVC K95GsG2FO6IByncTdJIATPkHWOGhi+O/6Nk+EyeWdi3ipJ4umgjlxinxddGw6tClbUnv lDEZVfT95o1JpPqCNQ34WhT7Yo77PQ9wIRsTb3mi2pnT2MJgejRkQydzq12nHYrStOSf J1H6kiyM5u6GXNNEYQRJhWo5McwStsyj+ZK/0opvtERh6t8aw3f932bz5binTjEDW8fN vQaA== Received: by 10.229.122.220 with SMTP id m28mr10307336qcr.49.1343187788341; Tue, 24 Jul 2012 20:43:08 -0700 (PDT) Received: from x980.localdomain6 (h184-61-125-197.altnnh.dsl.dynamic.tds.net. [184.61.125.197]) by mx.google.com with ESMTPS id et6sm15489186qab.8.2012.07.24.20.43.06 (version=SSLv3 cipher=OTHER); Tue, 24 Jul 2012 20:43:07 -0700 (PDT) From: Len Brown To: linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 36/52] ACPI: acpi_pad: tune round_robin_time Date: Tue, 24 Jul 2012 23:41:32 -0400 Message-Id: X-Mailer: git-send-email 1.7.12.rc0 In-Reply-To: <1343187708-19532-1-git-send-email-lenb@kernel.org> References: <1343187708-19532-1-git-send-email-lenb@kernel.org> In-Reply-To: <6af1c4fc5227af65092ebc848989693562bfa3e8.1343187617.git.len.brown@intel.com> References: <6af1c4fc5227af65092ebc848989693562bfa3e8.1343187617.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Len Brown In an effort to be fair to bound processes, acpi_pad periodically moves its forced-idle threads. The default interval for moving the threads is 10 seconds. Measurements show that reducing this to 1 second has no power or performance impact, so reduce default to 1 second. Signed-off-by: Len Brown --- drivers/acpi/acpi_pad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 1c09e1b..f3e959f 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -144,7 +144,7 @@ static void exit_round_robin(unsigned int tsk_index) } static unsigned int idle_pct = 5; /* percentage */ -static unsigned int round_robin_time = 10; /* second */ +static unsigned int round_robin_time = 1; /* second */ static int power_saving_thread(void *data) { struct sched_param param = {.sched_priority = 1};