From patchwork Tue Mar 11 22:40:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 26052 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EDAEB20068 for ; Tue, 11 Mar 2014 22:41:07 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id b6sf6383541yha.0 for ; Tue, 11 Mar 2014 15:41:07 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=nUcLNy74qzSHcMkp1U8j+7nsjkft6HL/1vOVjsRVFnU=; b=iKSfVZ3LwLvtOiPZi/uxb+WKR5Sp51PgMLvaTN2QGGnmcvNPGIOYLEUlp1J348T9zo 6D9Qdk1VAld6Dn8RMyZaRIvOG6jXQG9BBbryN/9ZL8qbmbNt+5FRHlzuWzOO1pE5E27H EQ2KtQN0ibJvBriJ5TtMhXfUe7/YBpOeMmNUZBnIEQ4GQqdIl0RWFgCXk4K2OwlawJbH h8QwFWTQ+0ihNDxC9IcoGlYH7cuUmyT7+RB24PpPz9oTOYUtN/hO3FFWWOJVZUz97Zlg cjrJPJdV4cPpzOGYdzKHc2SD7q8YWprJoH16pTDJJUPGZWLXkk62lUta3c3jXfXeY6fF hXtQ== X-Gm-Message-State: ALoCoQnsTJ3w96TZxhu+YZhQcpb9ryi3XbePwf00HAaCHPPfT+TRGTkAa1YOOmOMxmPkY5TAoGD2 X-Received: by 10.58.210.2 with SMTP id mq2mr10108223vec.3.1394577667463; Tue, 11 Mar 2014 15:41:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.35.208 with SMTP id n74ls2663817qgn.65.gmail; Tue, 11 Mar 2014 15:41:07 -0700 (PDT) X-Received: by 10.52.65.132 with SMTP id x4mr1868399vds.36.1394577667365; Tue, 11 Mar 2014 15:41:07 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id uw4si6909879vdc.40.2014.03.11.15.41.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 15:41:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so9153686veb.23 for ; Tue, 11 Mar 2014 15:41:07 -0700 (PDT) X-Received: by 10.58.133.15 with SMTP id oy15mr6380732veb.19.1394577667261; Tue, 11 Mar 2014 15:41:07 -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.220.78.9 with SMTP id i9csp238801vck; Tue, 11 Mar 2014 15:41:06 -0700 (PDT) X-Received: by 10.66.163.2 with SMTP id ye2mr755408pab.110.1394577665807; Tue, 11 Mar 2014 15:41:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si351815pay.78.2014.03.11.15.41.01; Tue, 11 Mar 2014 15:41:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755962AbaCKWky (ORCPT + 26 others); Tue, 11 Mar 2014 18:40:54 -0400 Received: from mail-we0-f171.google.com ([74.125.82.171]:61760 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755529AbaCKWkx (ORCPT ); Tue, 11 Mar 2014 18:40:53 -0400 Received: by mail-we0-f171.google.com with SMTP id t61so10577116wes.2 for ; Tue, 11 Mar 2014 15:40:52 -0700 (PDT) X-Received: by 10.180.205.239 with SMTP id lj15mr5086720wic.22.1394577651949; Tue, 11 Mar 2014 15:40:51 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-526-136.w109-220.abo.wanadoo.fr. [109.220.245.136]) by mx.google.com with ESMTPSA id n3sm10411631wix.10.2014.03.11.15.40.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 15:40:51 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, dan.carpenter@oracle.com, ezequiel.garcia@free-electrons.com, ivan.khoronzhuk@ti.com, linus.walleij@linaro.org, magnus.damm@gmail.com, matthias.bgg@gmail.com, soren.brinkmann@xilinx.com, sboyd@codeaurora.org Subject: [PATCH 01/17] clocksource: arch_timer: Set dynamic irq affinity on mmio clockevent Date: Tue, 11 Mar 2014 23:40:37 +0100 Message-Id: <1394577653-8615-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <531F8FAC.2040902@linaro.org> References: <531F8FAC.2040902@linaro.org> 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: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , From: Stephen Boyd Set the CLOCK_EVT_FEAT_DYNIRQ flag on the memory mapped clockevent so that we save power by waking up the CPU with the next event when this timer is used in broadcast mode. Signed-off-by: Stephen Boyd Signed-off-by: Daniel Lezcano --- drivers/clocksource/arm_arch_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 95fb944..57e823c 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -277,6 +277,7 @@ static void __arch_timer_setup(unsigned type, clk->set_next_event = arch_timer_set_next_event_phys; } } else { + clk->features |= CLOCK_EVT_FEAT_DYNIRQ; clk->name = "arch_mem_timer"; clk->rating = 400; clk->cpumask = cpu_all_mask;