Received: by 10.223.164.202 with SMTP id h10csp43247wrb; Mon, 13 Nov 2017 19:31:03 -0800 (PST) X-Google-Smtp-Source: AGs4zMYCL+viT6Ea+cVH5F2XEC7xOtLIQMn/5JS7oW316r9MqI8AzDlNRwobOLROLBLN6RQBLj/a X-Received: by 10.84.233.131 with SMTP id l3mr7994829plk.295.1510630263004; Mon, 13 Nov 2017 19:31:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510630262; cv=none; d=google.com; s=arc-20160816; b=fiwVznHgq9Fb8GNoqXOmq/A4lopsQYEMXkDZg8hBYzBGMnUoc71aMkxXJXRG3XNKMa 93bI+j9/UXhkwSgMOxS2aUOpvmMUjZYbK213pCoFumPd/7zs3QWsWWxTkvu7lRKmLCGx LblBglNvuWV+7A1ABWOvnAdgvyooO816Jypkdd12CEkD0W/khEhobJomf5Icp3mQr202 +nQWTnYeCt6yTiz2Kv6hBzsAMsKf3zuSg0jAhFj/PV2leEM8CObzW0KfgcFvssT1YTQZ 73PK/xsF7SYpvcKrCDTNhSeVq9kf0R2E26zGtUtLXkvktukOGrDkzvnjKS2grzLMdRMX K98w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:organization:from :references:cc:to:subject:reply-to:arc-authentication-results; bh=9aCs4ZhjGG+Zq0w34X/H1hyNIvhLpoHYjNEQWm3J1ZY=; b=Lb42fQxIV/wIGNRrUJQXiTjbez27da5zIpK71htEEG58becdR5ZYH+7Z01vqaDa52Q E++S7iDe8S7O4jZB/pKTzGg4G372eIRWRpzj/hsyLILdx9RRab3rno49zlRvM47l8xaA /MxxSE2k/Fvu+C5ohCOz8KxbFi2NwywmQCIst1Wq6XEb1hLwWDKlCsHVLPVWmRvDjfHC LFV+BV0m+ZURQWnMB/GhjhT8Y3WZiIit2UzEcr+C2LpaEeC0O+kHGcC4VAIjRLKMgca/ /G2HL7Z317sRiofkjBKifaQTSIvzsUFhqoXlfjjkRY5pdnkia6BqjfxDDwxJeE188MoI HwDA== 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 t10si15418513plh.820.2017.11.13.19.30.50; Mon, 13 Nov 2017 19:31:02 -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 S1753378AbdKND37 (ORCPT + 89 others); Mon, 13 Nov 2017 22:29:59 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:19052 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753160AbdKND36 (ORCPT ); Mon, 13 Nov 2017 22:29:58 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAE3TjWx002971 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2017 03:29:45 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAE3Ti8o031691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2017 03:29:45 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vAE3Tibu026372; Tue, 14 Nov 2017 03:29:44 GMT Received: from [192.168.67.107] (/61.135.194.203) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Nov 2017 19:29:44 -0800 Reply-To: zhenzhong.duan@oracle.com Subject: Re: [PATCH] tick/broadcast: Remove redundant code in tick_check_new_device() To: Thomas Gleixner Cc: mingo@kernel.org, fweisbec@gmail.com, Srinivas REDDY Eeda , Joe Jin , linux-kernel@vger.kernel.org References: <35b094f6-70e0-49f2-803a-3333d7ee2524@default> From: Zhenzhong Duan Organization: Oracle Message-ID: <374b90a7-1a7a-5775-73d5-e204bfc69a65@oracle.com> Date: Tue, 14 Nov 2017 11:29:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit 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 On 2017/11/14 0:54, Thomas Gleixner wrote: > On Wed, 8 Nov 2017, Zhenzhong Duan wrote: > >> There is no way a timer used as broadcast clockevent device is also used as >> percpu tick clockevent device currently. > Correct. > >> It's better to put related code in tick_install_broadcast_device(), but I feel >> it's harmless to give it back to the clockevents layer. Pls correct me if I'm >> wrong. > You already established, that it _cannot_ be the broadcast device and the > per cpu device at the same time. So that condition can never be true. What > do you want to put into tick_install_broadcast_device()? This second > paragraph doesn't make sense, unless I'm missing something. I didn't find the reason in long history logs while the comments saying 'If the current device is the broadcast device, do not give it back to the clockevents layer !' If it does, tick_install_broadcast_device() is a proper place. If not, I can resend the patch with fresh description, pls confirm. -- thanks zduan From 1583970652159949644@xxx Mon Nov 13 16:55:28 +0000 2017 X-GM-THRID: 1583562997246093706 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread