public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Colin Cross <ccross@android.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	Santosh Shilimkar <santosh.shilimkar@ti.com>,
	Russell King <linux@arm.linux.org.uk>,
	Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>,
	Harald Gustafsson <harald.gustafsson@ericsson.com>,
	Linus Walleij <linus.ml.walleij@gmail.com>,
	linux-kernel@vger.kernel.org,
	Rickard ANDERSSON <rickard.andersson@stericsson.com>,
	martin persson <martin.persson@stericsson.com>,
	Varun Swara <Varun.Swara@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: twd: Adjust localtimer frequency withcpufreqnotifiers
Date: Sat, 14 May 2011 17:51:21 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.02.1105141749510.3078@ionos> (raw)
In-Reply-To: <BANLkTimxkY4MvQ+-qiOwdwbo7jPUAQ1vxw@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1042 bytes --]

On Fri, 13 May 2011, Colin Cross wrote:
> On Fri, May 13, 2011 at 3:02 AM, Thomas Gleixner <tglx@linutronix.de> 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

  reply	other threads:[~2011-05-14 15:51 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18  6:14 [PATCH] ARM: twd: Adjust localtimer frequency with cpufreq notifiers Colin Cross
2011-03-04 10:17 ` Linus Walleij
2011-03-04 10:27   ` martin persson
2011-03-04 20:11     ` Colin Cross
2011-03-04 20:31       ` Rob Herring
2011-03-04 21:33         ` Colin Cross
2011-03-05  8:19           ` [PATCH] ARM: twd: Adjust localtimer frequency with cpufreqnotifiers Santosh Shilimkar
2011-03-06 12:06             ` Linus Walleij
2011-03-06 14:20               ` [PATCH] ARM: twd: Adjust localtimer frequency withcpufreqnotifiers Santosh Shilimkar
2011-03-06 17:42                 ` Colin Cross
2011-03-06 19:02                   ` Linus Walleij
2011-05-12 15:14                     ` Linus Walleij
2011-05-13 10:02                       ` Thomas Gleixner
2011-05-13 10:59                         ` Linus Walleij
2011-05-13 21:15                           ` Russell King - ARM Linux
2011-05-13 21:22                           ` Colin Cross
2011-05-13 21:24                         ` Colin Cross
2011-05-14 15:51                           ` Thomas Gleixner [this message]
2011-05-16 11:18                             ` Santosh Shilimkar
2011-05-16 14:44                               ` Thomas Gleixner
2011-05-16 16:29                                 ` Colin Cross
2011-05-16 16:33                                   ` Thomas Gleixner
2011-05-16 16:43                                   ` Santosh Shilimkar
2011-05-16 23:08                                     ` Colin Cross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.02.1105141749510.3078@ionos \
    --to=tglx@linutronix.de \
    --cc=Varun.Swara@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=ccross@android.com \
    --cc=harald.gustafsson@ericsson.com \
    --cc=linus.ml.walleij@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=martin.persson@stericsson.com \
    --cc=rickard.andersson@stericsson.com \
    --cc=santosh.shilimkar@ti.com \
    --cc=srinidhi.kasagar@stericsson.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox