Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752825AbcD0J0e (ORCPT ); Wed, 27 Apr 2016 05:26:34 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:21983 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752195AbcD0J0d (ORCPT ); Wed, 27 Apr 2016 05:26:33 -0400 Date: Wed, 27 Apr 2016 17:22:11 +0800 From: Jisheng Zhang To: CC: , Subject: Re: [PATCH v2] ARM: reboot: remove duplicated local_irq_disable() Message-ID: <20160427172211.395b846a@xhacker> In-Reply-To: <1459320308-4584-1-git-send-email-jszhang@marvell.com> References: <1459320308-4584-1-git-send-email-jszhang@marvell.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-04-27_06:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1604270148 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1076 Lines: 43 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 > --- > > 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); > }