From patchwork Thu Jul 5 13:23:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 1160711 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 093DB40ABE for ; Thu, 5 Jul 2012 13:23:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933002Ab2GENXf (ORCPT ); Thu, 5 Jul 2012 09:23:35 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:63690 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933000Ab2GENXe (ORCPT ); Thu, 5 Jul 2012 09:23:34 -0400 Received: by wibhm11 with SMTP id hm11so6631086wib.1 for ; Thu, 05 Jul 2012 06:23:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=5cR6gaQlENZvaqbUFtPT3bEVfNnMl6LZY69d4mZWfvw=; b=i5Luxj8TBNCGluK0MUQdIRFyl9vSXojyUmwW7s3+d//wXZck9jYLUYoDyAo8iJcs2/ Wcs5QYDgHDJwFCh2V0a2A9ogKw/0y+KlWz0nedKdL8iY0NQoaWo8SgagGsWwd4Pe4gLi yRmyducIwtj7r79cGCLQ7D61DceNwhH4RSTwxj5CFaoMscK8pvTalUUW37Ec08/EyzRC HA6w5k9zTGjuGVHGCkYvE2MKA+UY/tGrIe4lyLVUcmFEglAaodQYCuEqPB0xkwaTtkun 8duQAp2smlBvNcHI6PmiN76OhrcdhaWk+TM/v/OPTu6Wdzce1zljHueuxqHKIWJIW9LA jU0g== Received: by 10.216.208.87 with SMTP id p65mr8264706weo.162.1341494613671; Thu, 05 Jul 2012 06:23:33 -0700 (PDT) Received: from localhost.localdomain (AToulouse-159-1-71-53.w92-134.abo.wanadoo.fr. [92.134.94.53]) by mx.google.com with ESMTPS id q6sm312524wiy.0.2012.07.05.06.23.32 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 06:23:33 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org, linaro-dev@lists.linaro.org Subject: [PATCH 4/4] cpuidle : move tlb flag to the cpuidle header Date: Thu, 5 Jul 2012 15:23:28 +0200 Message-Id: <1341494608-16591-4-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1341494608-16591-1-git-send-email-daniel.lezcano@linaro.org> References: <1341494608-16591-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQkuEWczQxwtUzNCsp79xNc9aVSVtmzJjFfWyhdMUD4hk3M3asu1Ck/Onyw6LKD4ygXDGTEb Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Move this specific flag to the header file. Signed-off-by: Daniel Lezcano --- drivers/idle/intel_idle.c | 8 -------- include/linux/cpuidle.h | 16 +++++++++++++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index fe95d54..3f0eb07 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -101,14 +101,6 @@ static int intel_idle_cpu_init(int cpu); static struct cpuidle_state *cpuidle_state_table; /* - * Set this flag for states where the HW flushes the TLB for us - * and so we don't need cross-calls to keep it consistent. - * If this flag is set, SW flushes the TLB, so even if the - * HW doesn't do the flushing, this flag is safe to use. - */ -#define CPUIDLE_FLAG_TLB_FLUSHED 0x10000 - -/* * States are indexed by the cstate number, * which is also the index into the MWAIT hint array. * Thus C0 is a dummy. diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 730e12e..be150c9 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -67,10 +67,20 @@ struct cpuidle_state { * the cpuidle core the specified state can use the * * enter_dead function. * * * + * CPUIDLE_FLAG_TLB_FLUSHED : Set this flag for states where the HW flushes the * + * TLB for us and so we don't need cross-calls to * + * keep it consistent. If this flag is set, SW * + * flushes the TLB, so even if the HW doesn't do the * + * flushing, this flag is safe to use. * + * * *******************************************************************************/ -#define CPUIDLE_FLAG_TIME_VALID (0x01) -#define CPUIDLE_FLAG_COUPLED (0x02) -#define CPUIDLE_FLAG_DEAD_VALID (0x04) +#define CPUIDLE_FLAG_TIME_VALID (0x01) +#define CPUIDLE_FLAG_COUPLED (0x02) +#define CPUIDLE_FLAG_DEAD_VALID (0x04) +#define CPUIDLE_FLAG_TLB_FLUSHED (0x08) + + + /** * cpuidle_get_statedata - retrieves private driver state data