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


Groups > linux.kernel > #1388829 > unrolled thread

Re: [PATCH v2] ARM: reboot: remove duplicated local_irq_disable()

Started byJisheng Zhang <jszhang@marvell.com>
First post2016-04-27 11:30 +0200
Last post2016-04-27 11:30 +0200
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] ARM: reboot: remove duplicated local_irq_disable() Jisheng Zhang <jszhang@marvell.com> - 2016-04-27 11:30 +0200

#1388829 — Re: [PATCH v2] ARM: reboot: remove duplicated local_irq_disable()

FromJisheng Zhang <jszhang@marvell.com>
Date2016-04-27 11:30 +0200
SubjectRe: [PATCH v2] ARM: reboot: remove duplicated local_irq_disable()
Message-ID<rstXc-7fj-7@gated-at.bofh.it>
Dear Russell,

On Wed, 30 Mar 2016 14:45:08 +0800 Jisheng Zhang wrote:

> Once entering machine_halt() and machine_restart(), local_irq_disable()
> is called, and local irq is kept disabled, so the local_irq_disable()
> at the end of these two functions are not necessary, remove it.

Could I put the patch in your patch tracking system?

Thanks,
Jisheng

> 
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
> ---
> 
> Since v1:
>  - correct typo in commit msg
> 
>  arch/arm/kernel/reboot.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c
> index 71a2ff9..3fa867a 100644
> --- a/arch/arm/kernel/reboot.c
> +++ b/arch/arm/kernel/reboot.c
> @@ -104,8 +104,6 @@ void machine_halt(void)
>  {
>  	local_irq_disable();
>  	smp_send_stop();
> -
> -	local_irq_disable();
>  	while (1);
>  }
>  
> @@ -150,6 +148,5 @@ void machine_restart(char *cmd)
>  
>  	/* Whoops - the platform was unable to reboot. Tell the user! */
>  	printk("Reboot failed -- System halted\n");
> -	local_irq_disable();
>  	while (1);
>  }

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web