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


Groups > linux.kernel > #1460620

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

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH v7 4/4] nmi_backtrace: generate one-line reports for idle cpus
Date 2016-08-11 17:40 +0200
Message-ID <s50fo-5Dk-35@gated-at.bofh.it> (permalink)
References <s3VhL-3zC-3@gated-at.bofh.it> <s3VhM-3zC-35@gated-at.bofh.it> <s4eDM-7BJ-35@gated-at.bofh.it> <s505H-5ym-23@gated-at.bofh.it> <s505H-5ym-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 11, 2016 at 05:25:38PM +0200, Petr Mladek wrote:
> diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h
> index b77f5edb03b0..e31d50acd491 100644
> --- a/arch/x86/include/asm/irqflags.h
> +++ b/arch/x86/include/asm/irqflags.h
> @@ -44,7 +44,7 @@ static inline void native_irq_enable(void)
>  	asm volatile("sti": : :"memory");
>  }
>  
> -static inline void native_safe_halt(void)
> +static inline __attribute__((__section__(".cpuidle.text"))) void native_safe_halt(void)
>  {
>  	asm volatile("sti; hlt": : :"memory");
>  }

An alternative is to use __always_inline I suppose.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v7 4/4] nmi_backtrace: generate one-line reports for idle  cpus Petr Mladek <pmladek@suse.com> - 2016-08-11 17:30 +0200
  Re: [PATCH v7 4/4] nmi_backtrace: generate one-line reports for idle  cpus Peter Zijlstra <peterz@infradead.org> - 2016-08-11 17:40 +0200
  Re: [PATCH v7 4/4] nmi_backtrace: generate one-line reports for idle  cpus Petr Mladek <pmladek@suse.com> - 2016-08-16 10:10 +0200

csiph-web