Received: by 10.223.164.202 with SMTP id h10csp594705wrb; Tue, 14 Nov 2017 06:38:37 -0800 (PST) X-Google-Smtp-Source: AGs4zMZsonuKeu+GCoreMJINwlhz9A+9o9h21h1rWNKo4+B7Uy3onfYipz2vYg+MhV9ly9ZK6oEI X-Received: by 10.98.68.146 with SMTP id m18mr14151258pfi.10.1510670317598; Tue, 14 Nov 2017 06:38:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510670317; cv=none; d=google.com; s=arc-20160816; b=C0j87uyefMk17i7qRlElcB1VgMLMPQX5bDG743xsTjH1B2QYTeXuOTvRpcAjay+1F2 goE5/DI4rxPsy5E7D0TqS8u2h5PcggA4UwayeQsOIXO0hB39J/JOqn87UXhW6bemp7jQ kXMCxxznH4J5DgmqWOirEbO1Js6utfte5sBUK1nkNmxtg+cCpXbgSHewVci54sNt8ZtR TvE9U2W09Lj8hIsCrkWq+4F6P1O+5EKSOG+cZinSZhEDtb9KM4k8I/f4KeAHgiBPFTya 6zg8Szl0MCTrB9Z4A7M2/aNpoPHyDfhEtJllr3PO9ytwap1ZwcVrSC7wIr/OF9TK8/WZ 4pmw== 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:arc-authentication-results; bh=lrpuDLKpGPTI1QnCQSkCkLJDpVqemdauWa2GQqdEWMA=; b=chLuIJW5vS6YCsXSzB1K1mrH5o7m3UozsET8gYdEHiFShlcmHPKXHgXggFFJW+9IBn QGK68Q5oVEgSfvZWUbz0rOZTHcsiRJEglfG/ChtDFWEpfoo+FFJb/LXMjKY8UbriQOpa ItuskziAM9Z/Y+dGtdhDloZUvL0bLZlPG4UiKXTqLTurB2xfq/Bo4YDZADc9cFSoBeef 99uWaA5FiTytEsBxqh/RcvkIlcElanBe9bLPKOz/yXPgy75w8YImHVJYZUrfhsC9KfWB itfQPP3YCKnTsj2W+cWRa0Wu4uW9xrII163hxbcF/cVpkb7MyO89/KQyc+TjiVovXgkn gXBg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 f11si3589989plm.77.2017.11.14.06.38.25; Tue, 14 Nov 2017 06:38:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752360AbdKNOgw convert rfc822-to-8bit (ORCPT + 88 others); Tue, 14 Nov 2017 09:36:52 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:27175 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755363AbdKNOgn (ORCPT ); Tue, 14 Nov 2017 09:36:43 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAEEaU9B008575 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2017 14:36:31 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAEEaU4X032121 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2017 14:36:30 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vAEEaUaG029506; Tue, 14 Nov 2017 14:36:30 GMT MIME-Version: 1.0 Message-ID: <0f379758-282c-40de-a71e-d09fe768d2b5@default> Date: Tue, 14 Nov 2017 06:36:30 -0800 (PST) From: Zhenzhong Duan To: , , Cc: , , Subject: [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-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 From 1584027716011338958@xxx Tue Nov 14 08:02:29 +0000 2017 X-GM-THRID: 1583264906851375953 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread