From patchwork Tue Jul 1 16:32:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 32909 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 526F720672 for ; Tue, 1 Jul 2014 16:34:10 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id lx4sf61744472iec.0 for ; Tue, 01 Jul 2014 09:34:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=BFci3Cy+0993Tgipni7b+MSzCEGqCb9+p6ZDWAk2kKc=; b=e3NfH+WW6n+N3ILqddV+5n6y2CRwjz7ydZlcIXDMLg8eE8B1zKtA/5BEmpJaXv08Uw Chu+IGrglrm9mftUd/1Zc4ZwoU3AbC3Azw65Jz43OlAKkcf68nJ5w5IlqNp09wkNGGBD O/zlFU/+Nuizk/xUkGrdND+EOdxilJy9eaa2hQ5iqS9SPBP0DeVTwPePd2EtScTRT5zv QjsxoZbFlTy7SqZp5LM9wFgggEzsqh3oluHd+4DEsxKpsHF9u9ZCSm3y8by2mmd5Ozo6 eVShqycXb6GkC+gIL7gb0HMBdUxucrjyLS6zs7iWJ3sjMDDKaD6fhTJYSA68vnQa7Bc2 rhiQ== X-Gm-Message-State: ALoCoQl3ghT6BV1vGgZqY2PxaeKDITf7M3uwcY6hhZ+VlrAclZpTvfkDrmBj0C8AEptSm4bbSVc4 X-Received: by 10.182.197.172 with SMTP id iv12mr24441376obc.1.1404232449861; Tue, 01 Jul 2014 09:34:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.97.198 with SMTP id m64ls805510qge.39.gmail; Tue, 01 Jul 2014 09:34:09 -0700 (PDT) X-Received: by 10.220.182.5 with SMTP id ca5mr1546662vcb.50.1404232449629; Tue, 01 Jul 2014 09:34:09 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ya3si11638005vec.105.2014.07.01.09.34.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 09:34:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id lf12so9228213vcb.32 for ; Tue, 01 Jul 2014 09:34:09 -0700 (PDT) X-Received: by 10.221.40.193 with SMTP id tr1mr2263833vcb.31.1404232449560; Tue, 01 Jul 2014 09:34:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp228306vcb; Tue, 1 Jul 2014 09:34:09 -0700 (PDT) X-Received: by 10.68.213.34 with SMTP id np2mr15644445pbc.167.1404232448729; Tue, 01 Jul 2014 09:34:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si7288pdk.257.2014.07.01.09.34.07; Tue, 01 Jul 2014 09:34:07 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758366AbaGAQd6 (ORCPT + 27 others); Tue, 1 Jul 2014 12:33:58 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:60838 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758345AbaGAQdz (ORCPT ); Tue, 1 Jul 2014 12:33:55 -0400 Received: by mail-pa0-f47.google.com with SMTP id kq14so10867246pab.34 for ; Tue, 01 Jul 2014 09:33:54 -0700 (PDT) X-Received: by 10.66.237.8 with SMTP id uy8mr1846911pac.95.1404232434402; Tue, 01 Jul 2014 09:33:54 -0700 (PDT) Received: from localhost ([122.166.172.22]) by mx.google.com with ESMTPSA id y9sm217191pdj.52.2014.07.01.09.33.48 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 01 Jul 2014 09:33:53 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net, shawn.guo@linaro.org Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, arvind.chauhan@arm.com, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, spk.linux@gmail.com, thomas.ab@samsung.com, nm@ti.com, t.figa@samsung.com, Viresh Kumar Subject: [PATCH 03/14] cpufreq: Add support for per-policy driver data Date: Tue, 1 Jul 2014 22:02:32 +0530 Message-Id: <0614df495e361dd23ebe2d4e4ee3d40cb23948da.1404231535.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Drivers supporting multiple clusters or multiple 'struct cpufreq_policy' instances may need to keep per-policy data. If the core doesn't support them, they might do it in the most unoptimized way: 'per-cpu' data. This patch adds another field in 'struct cpufreq_policy': 'driver_data'. It isn't accessed by core and is for driver's internal use. Signed-off-by: Viresh Kumar --- include/linux/cpufreq.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index ec4112d..d4b1108 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -112,6 +112,9 @@ struct cpufreq_policy { spinlock_t transition_lock; wait_queue_head_t transition_wait; struct task_struct *transition_task; /* Task which is doing the transition */ + + /* For cpufreq driver's internal use */ + void *driver_data; }; /* Only for ACPI */