From patchwork Thu May 31 06:48:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kejun ZHOU X-Patchwork-Id: 9053 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8E66224011 for ; Thu, 31 May 2012 06:48:59 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 3C91AA182E1 for ; Thu, 31 May 2012 06:48:59 +0000 (UTC) Received: by yhpp61 with SMTP id p61so486550yhp.11 for ; Wed, 30 May 2012 23:48:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=rrB58wrTymUZDwAI0x7up0TDeEguRkSCTzvULOsCklE=; b=Lk3pIR2bLdVirC99/SsNHGoPx8CxvtQrncTfdwmGzLJWFrkOQia/EIm48Q6HHKy9m/ wp4Fjp81QgasRCbtF9+M5lE9Asd+DUio/Kklic9r/k8zKr1xZ/OjSUsbYpvatMhivYYV vc68koYRAZzeWLL282f1UeVovzfFrZHQbNDCoT6GYNn+zqRCG0V85AgFJX8Qs1o9b1OH iD67ik0jGoQeBNcfUyA0EA+qgt1jj1dW5QAmyT8JhLETOFGWfMNioY5fWmesxts/ylzT Ubk2FRTG1xKr0Uu46lGRedAxV3fhwBuMk0GYcFxA+33HyRyO3NmlxEAo6v6dfKavXe5q jGoA== Received: by 10.50.87.227 with SMTP id bb3mr12636796igb.57.1338446938234; Wed, 30 May 2012 23:48:58 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp237618ibb; Wed, 30 May 2012 23:48:57 -0700 (PDT) Received: by 10.68.197.231 with SMTP id ix7mr3603505pbc.103.1338446937255; Wed, 30 May 2012 23:48:57 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id rr7si1797630pbc.292.2012.05.30.23.48.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 May 2012 23:48:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of kejun.zhou@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of kejun.zhou@linaro.org) smtp.mail=kejun.zhou@linaro.org Received: by danh15 with SMTP id h15so989397dan.37 for ; Wed, 30 May 2012 23:48:57 -0700 (PDT) Received: by 10.68.225.6 with SMTP id rg6mr2779730pbc.100.1338446936885; Wed, 30 May 2012 23:48:56 -0700 (PDT) Received: from localhost.localdomain ([118.143.64.134]) by mx.google.com with ESMTPS id or5sm3200845pbb.6.2012.05.30.23.48.55 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 May 2012 23:48:56 -0700 (PDT) From: "kejun.zhou" To: hongbo.zhang@linaro.org Cc: patches@linaro.org, linaro-dev@lists.linaro.org, "kejun.zhou" Subject: [PATCH 1/2] Change some head files in cpuidle_kill.c for pm-qa in Android system. Date: Thu, 31 May 2012 14:48:17 +0800 Message-Id: <1338446897-1967-1-git-send-email-kejun.zhou@linaro.org> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQmBHvuzMwQhMwxCI1Wz4Mis+a8HrL999E0nIly18PAEeXyhHRbi+iPbo0e5Cvw6Aeeb0uAC Signed-off-by: kejun.zhou --- cpuidle/cpuidle_killer.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/cpuidle/cpuidle_killer.c b/cpuidle/cpuidle_killer.c index 67a675e..5e7320f 100644 --- a/cpuidle/cpuidle_killer.c +++ b/cpuidle/cpuidle_killer.c @@ -2,7 +2,19 @@ #include #include #include +#ifndef ANDROID #include +#else +/* +* As of 4.0.4, Bionic doesn't provide the timex/adjtimex interface However, the kernel does. +*/ +#include /* for struct timex */ +#include /* for __NR_adjtimex */ +static int adjtimex(struct timex *buf) +{ + return syscall(__NR_adjtimex, buf); +} +#endif #include #include #include