Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8023165imu; Tue, 4 Dec 2018 01:23:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/WY1wqC8RM+PLdvRc33qMoJAbqF1UnEFd+A5ov+C3CNO8qJsfnoQdsOhovSO3N0r1aDR0Ca X-Received: by 2002:a62:4714:: with SMTP id u20mr19104444pfa.144.1543915410255; Tue, 04 Dec 2018 01:23:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543915410; cv=none; d=google.com; s=arc-20160816; b=Ghp5ZeW9OpNv6VAvRz7nWw/GPCH5Ah1dqP9btKkoG/9vQrQmeqBO+Z8uctFxtfWHYE I1Cc2TkvsZJ/8K/qtgxvEnlgF/y03EHsfo553QnCISYVg2OstQExtpJvtbS10/Ym7Jlf e6FX4ogSAIZubxHMuQXXGg7YUVMdPTNmDZUeO/8OEiIuMc6G8QHOY9lvZzRPzeqF2nMU K0insCfvraMC0vpOHwzh3CzaEYNrgDuJPVKbGYQb4CWbraUD14F42EO9TGs0lfpxqcO9 hBLb2+7H8jjF1yLeujvlTMKjxsGcEbMDA46hJMtj4ITAfKAiADgGoVBHXwKR8eouPojH JmCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:subject:cc:to:from:date:message-id :mime-version:dkim-signature; bh=bByOGUD+Vx0sbKYxDqhb5PoOLsg3yFzFSNLF3IJHqg4=; b=iBZR0g8UcYOhlzztO1LTqw8AMSKAyT3bH+QZEBjGzEpdWIdIgRsms6cN5F5f3Q8Mwk kGGNPJCOWQUqUrbe9HvArOHW4EFssduPgD70UEmE1szZs3+XYVNYMEnJHrSmTxi54p5A 6JACcnq3tjpJ3+56KFPJy+eyYAimxuLxUXv+Dr973F7JWcOf52RIepZK4kPgBEzXcPVx sm34otbSo/76bG7lFOcod0WIjm0TQjpd+bUQtbFgAPVOfruti4Ibve2d26xmwWgdn5ik YtnoAjoC87m1wQXkSiLZkP4Z/I3At9sA6lga1zl+mPzNEGY4VokI8e1U4+ytC9Ps8i8P pyqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="0PdD/IT3"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si15967970plk.199.2018.12.04.01.23.15; Tue, 04 Dec 2018 01:23:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="0PdD/IT3"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725999AbeLDJVa (ORCPT + 99 others); Tue, 4 Dec 2018 04:21:30 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:50780 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbeLDJV2 (ORCPT ); Tue, 4 Dec 2018 04:21:28 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB49J3aH100707; Tue, 4 Dec 2018 09:21:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : to : cc : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=bByOGUD+Vx0sbKYxDqhb5PoOLsg3yFzFSNLF3IJHqg4=; b=0PdD/IT3hQdil+80sqQyfvyLaE/MrSUAXCkBjlBnkj1RSxJSSXSL0FAE/qBmyGCN4bSg jA6hKBuaZX/Kg+WEdjW7LI9hzE3Cds7HXvlPAibxZo5TPSYDTDLvncDAqvwIPgZMPlGz KMOT0KY8Q0d+Rrw+HeWMl5h/QUei4dU0hFULDGDLgyQmUOlvbL2g44pQQ/Sfr50AvGqw CU4Cj/aa4wK/r2lLTq4jb0YN3di9HNBYKwGFApagINYdgZhhqUwu8SHVNM1Oc0MvGEWb ffCcdkQaz8U8rKl1lKl+EHeZFQtRO/aG9QicZiaK/ySNkU4aIzfQsr5kN8bYgLfUj154 iw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2p3hqtu5jt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Dec 2018 09:21:17 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wB49LBxD003190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Dec 2018 09:21:12 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wB49LBSs020938; Tue, 4 Dec 2018 09:21:11 GMT MIME-Version: 1.0 Message-ID: <723e6e0b-9469-4b11-9571-a65ef4f830f0@default> Date: Tue, 4 Dec 2018 09:21:11 +0000 (UTC) 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: quoted-printable Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9096 signatures=668686 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-1810050000 definitions=main-1812040083 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maintainers, When cleanup my mailbox for free space, I see this patch is missed in upstr= eam. Checked code again, I think that code indeed could be removed safely. So could anyone Ack or NAK it? Thanks very much. Regards Zhenzhong ----- 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. >=20 > -v2: remove meaningless description suggested by tglx >=20 > Signed-off-by: Zhenzhong Duan > --- > kernel/time/tick-common.c | 7 +------ > 1 files changed, 1 insertions(+), 6 deletions(-) >=20 > 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) > =20 > =09/* > =09 * Replace the eventually existing device by the new > -=09 * device. If the current device is the broadcast device, do > -=09 * not give it back to the clockevents layer ! > +=09 * device. > =09 */ > -=09if (tick_is_broadcast_device(curdev)) { > -=09=09clockevents_shutdown(curdev); > -=09=09curdev =3D NULL; > -=09} > =09clockevents_exchange_device(curdev, newdev); > =09tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); > =09if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) > --=20 > 1.7.3