Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758282Ab1ENPvf (ORCPT ); Sat, 14 May 2011 11:51:35 -0400 Received: from www.linutronix.de ([62.245.132.108]:54402 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757560Ab1ENPvc (ORCPT ); Sat, 14 May 2011 11:51:32 -0400 Date: Sat, 14 May 2011 17:51:21 +0200 (CEST) From: Thomas Gleixner To: Colin Cross cc: Linus Walleij , Santosh Shilimkar , Russell King , Srinidhi KASAGAR , Harald Gustafsson , Linus Walleij , linux-kernel@vger.kernel.org, Rickard ANDERSSON , martin persson , Varun Swara , Catalin Marinas , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: twd: Adjust localtimer frequency withcpufreqnotifiers In-Reply-To: Message-ID: References: <1290060899-9786-1-git-send-email-ccross@android.com> <4D70BE9D.4000507@stericsson.com> <4D714C17.7080102@gmail.com> <7e9fafa016bfe536ccc373fc2cc7ba61@mail.gmail.com> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-2023042285-1305388282=:3078" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1596 Lines: 40 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-2023042285-1305388282=:3078 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Fri, 13 May 2011, Colin Cross wrote: > On Fri, May 13, 2011 at 3:02 AM, Thomas Gleixner wrote: > > ?/** > > + * clockevents_reconfigure - Reconfigure and reprogram a clock event device. > > + * @dev: ? ? ? device to modify > > + * @freq: ? ? ?new device frequency > > + * @secr: ? ? ?guaranteed runtime conversion range in seconds > > + * > > + * Reconfigure and reprogram a clock event device in oneshot > > + * mode. Must only be called from low level idle code where > > + * interaction with hrtimers/nohz code etc. is not possible and > > + * guaranteed not to conflict. Must be called with interrupts > > + * disabled! > > + * Returns 0 on success, -ETIME when the event is in the past or > > + * -EINVAL when called with invalid parameters. > > + */ > We need to call this from a cpufreq notifier with interrupts disabled, > not from idle. That works as well. Comments needs update. The important thing is that neither a timer interrupt nor a hrtimer function should interfere on that very cpu. Thanks, tglx --8323328-2023042285-1305388282=:3078-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/