From patchwork Mon Apr 27 07:23:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Chary X-Patchwork-Id: 20068 X-Patchwork-Delegate: lenb@kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3R7YOYM003325 for ; Mon, 27 Apr 2009 07:34:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752842AbZD0HeV (ORCPT ); Mon, 27 Apr 2009 03:34:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752994AbZD0HeV (ORCPT ); Mon, 27 Apr 2009 03:34:21 -0400 Received: from iksaif.net ([88.191.73.63]:44686 "EHLO iksaif.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbZD0HeV (ORCPT ); Mon, 27 Apr 2009 03:34:21 -0400 X-Greylist: delayed 588 seconds by postgrey-1.27 at vger.kernel.org; Mon, 27 Apr 2009 03:34:20 EDT Received: from localhost.localdomain (cxr69-11-88-180-139-205.fbx.proxad.net [88.180.139.205]) (Authenticated sender: corentincj@iksaif.net) by iksaif.net (Postfix) with ESMTPA id DED91C9001E; Mon, 27 Apr 2009 09:25:38 +0200 (CEST) From: Corentin Chary To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, Grigori Goronzy , Corentin Chary Subject: [PATCH 4/7] eeepc-laptop: support for super hybrid engine (SHE) Date: Mon, 27 Apr 2009 09:23:40 +0200 Message-Id: <1240817023-5985-5-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.6.2.3 In-Reply-To: <1240817023-5985-4-git-send-email-corentincj@iksaif.net> References: <1240817023-5985-1-git-send-email-corentincj@iksaif.net> <1240817023-5985-2-git-send-email-corentincj@iksaif.net> <1240817023-5985-3-git-send-email-corentincj@iksaif.net> <1240817023-5985-4-git-send-email-corentincj@iksaif.net> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Grigori Goronzy The older eeepc-acpi driver allowed to control the SHE performance preset through a ACPI function for just this purpose. SHE underclocks and undervolts the FSB and undervolts the CPU (at preset 2, "powersave"), or slightly overclocks the CPU (at preset 0, "performance"). Preset 1 is the default setting with default clocks and voltage. The new eeepc-laptop driver doesn't support it anymore. The attached patch adds support for it to eeepc-laptop. It's very straight-forward and almost trivial. Signed-off-by: Grigori Goronzy Signed-off-by: Corentin Chary --- drivers/platform/x86/eeepc-laptop.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 57f21f0..7aaf587 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -384,11 +384,13 @@ static ssize_t show_sys_acpi(int cm, char *buf) EEEPC_CREATE_DEVICE_ATTR(camera, CM_ASL_CAMERA); EEEPC_CREATE_DEVICE_ATTR(cardr, CM_ASL_CARDREADER); EEEPC_CREATE_DEVICE_ATTR(disp, CM_ASL_DISPLAYSWITCH); +EEEPC_CREATE_DEVICE_ATTR(cpufv, CM_ASL_CPUFV); static struct attribute *platform_attributes[] = { &dev_attr_camera.attr, &dev_attr_cardr.attr, &dev_attr_disp.attr, + &dev_attr_cpufv.attr, NULL };