Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751362AbeAEB2V (ORCPT + 1 other); Thu, 4 Jan 2018 20:28:21 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:44913 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751100AbeAEB2T (ORCPT ); Thu, 4 Jan 2018 20:28:19 -0500 MIME-Version: 1.0 Message-ID: Date: Thu, 4 Jan 2018 17:28:07 -0800 (PST) From: Zhenzhong Duan To: , , Cc: , , Subject: Re: [PATCH v2] tick/broadcast: Remove redundant code in tick_check_new_device() X-Mailer: Zimbra on Oracle Beehive Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8764 signatures=668651 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1801050014 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi Maintainers, Any comment for this v2? Thanks zduan ----- zhenzhong.duan@oracle.com wrote: > There is no way a timer used as broadcast clockevent device is also > used as > percpu tick clockevent device currently. > > -v2: remove meaningless description suggested by tglx > > Signed-off-by: Zhenzhong Duan > --- > kernel/time/tick-common.c | 7 +------ > 1 files changed, 1 insertions(+), 6 deletions(-) > > diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c > index 49edc1c..9bcc866 100644 > --- a/kernel/time/tick-common.c > +++ b/kernel/time/tick-common.c > @@ -320,13 +320,8 @@ void tick_check_new_device(struct > clock_event_device *newdev) > > /* > * Replace the eventually existing device by the new > - * device. If the current device is the broadcast device, do > - * not give it back to the clockevents layer ! > + * device. > */ > - if (tick_is_broadcast_device(curdev)) { > - clockevents_shutdown(curdev); > - curdev = NULL; > - } > clockevents_exchange_device(curdev, newdev); > tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); > if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) > -- > 1.7.3