Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1361989 > unrolled thread

Re: [PATCH v2 4/4] nmi_backtrace: generate one-line reports for idle cpus

Started byPeter Zijlstra <peterz@infradead.org>
First post2016-03-21 17:50 +0100
Last post2016-03-21 17:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 4/4] nmi_backtrace: generate one-line reports for idle  cpus Peter Zijlstra <peterz@infradead.org> - 2016-03-21 17:50 +0100

#1361989 — Re: [PATCH v2 4/4] nmi_backtrace: generate one-line reports for idle cpus

FromPeter Zijlstra <peterz@infradead.org>
Date2016-03-21 17:50 +0100
SubjectRe: [PATCH v2 4/4] nmi_backtrace: generate one-line reports for idle cpus
Message-ID<rfbbH-8nF-3@gated-at.bofh.it>
The below annotates the two most used idle functions on x86


--- a/arch/x86/kernel/acpi/cstate.c
+++ b/arch/x86/kernel/acpi/cstate.c
@@ -152,7 +152,7 @@ int acpi_processor_ffh_cstate_probe(unsi
 }
 EXPORT_SYMBOL_GPL(acpi_processor_ffh_cstate_probe);
 
-void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cx)
+__cpuidle void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cx)
 {
 	unsigned int cpu = smp_processor_id();
 	struct cstate_entry *percpu_entry;
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -725,7 +725,7 @@ static struct cpuidle_state avn_cstates[
  *
  * Must be called under local_irq_disable().
  */
-static int intel_idle(struct cpuidle_device *dev,
+__cpuidle static int intel_idle(struct cpuidle_device *dev,
 		struct cpuidle_driver *drv, int index)
 {
 	unsigned long ecx = 1; /* break on interrupt flag */

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web