public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@linux.intel.com>
To: "Robert Schöne" <robert.schoene@tu-dresden.de>
Cc: Ingo Molnar <mingo@elte.hu>,
	Peter Zijlstra <peterz@infradead.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] power_end event (Resend)
Date: Wed, 09 Jun 2010 10:05:18 -0700	[thread overview]
Message-ID: <4C0FC9CE.30705@linux.intel.com> (raw)
In-Reply-To: <1276091847.1763.18.camel@localhost>

On 6/9/2010 6:57 AM, Robert Schöne wrote:
> Original Mail was sent at 2010/05/14 10:38:43 CEST
>
> Hi,
> I reported the power_end tracing problem earlier this year
> (http://lkml.org/lkml/2010/2/24/79) and sent a patch which worked for my
> system. However this patch would have not worked on other systems (as
> for example Arjans). It would had lead to a double posting of these
> events.
>
> However. Here's a diff that should fix the problem on the correct spot.
>
> The reason that it worked for Arjan and not for me is that his system
> uses drivers/acpi/processor_idle.c when idling, mine uses the cpu_idle
> thread from arch/x86/kernel/process_64.c.
> A comparable idle thread also exists for 32 bit x86, so I added it in
> process_32.c too.
>
> However, is there any standard about where to report the start and end
> events? Currently it's the idle routine, which creates the power_start
> event, the routine which calls the idle_routine on the other hand
> creates the power_end event.
>    

only the actual idle routine knows what C state it goes in; there's no 
central way for that really.

> For these patches, I'm not sure whether the power_end event should even
> be reported. On kernels, which use the repnop loop when idling, there
> won't be a switch to another c-state and therefore no power_start event,
> the power_end event could belong to. Would that be a problem? If it
> would, the only way to fix this would be to move the power_end events
> into the idle routines, since cpu_idle is dumb and does not know whats
> behind pm_idle.
>
>    

the patch makes sense; Acked-by: Arjan van de Ven <arjan@linux.intel.com>

  reply	other threads:[~2010-06-09 17:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 13:57 [PATCH] power_end event (Resend) Robert Schöne
2010-06-09 17:05 ` Arjan van de Ven [this message]
2010-06-09 18:12   ` Ingo Molnar
  -- strict thread matches above, loose matches on Subject: below --
2010-05-27  7:01 Robert Schöne

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=4C0FC9CE.30705@linux.intel.com \
    --to=arjan@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    --cc=robert.schoene@tu-dresden.de \
    --cc=tglx@linutronix.de \
    /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