Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp968853pxb; Sat, 17 Apr 2021 02:28:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqa/Gx8s8zh1JjhBGNXPjhm8/BRLRNtGx3OeFYRbT3uyOkUR8wpkekTt/Y7cFeFjaCCG1+ X-Received: by 2002:a17:90b:682:: with SMTP id m2mr14257354pjz.70.1618651694910; Sat, 17 Apr 2021 02:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618651694; cv=none; d=google.com; s=arc-20160816; b=xQvR4TDUIr0B4lH46JRZ6c8v9EmhYyts4RzjyrBqsiF1A9gXpI0+9VSdbK2Iekmswk 7jXjrXJ5wO2NwwGZlfBDmZyBbZJVhgkxQMB/JowX5uSvpgf39QAN49+sN2SR63430lvV iLZyz+FzBhwTHfYiob6bE+bnbGXtOgGGsyhWqE9x26rnanBvaziFj3rJRYXxpYcfrgwC tVNprgcQviCCbUywqn+MbRWhOBh0xlBHVfcvLs+iNoiBfEdoQX0nG0ea80Pspn9uZ0FP gM5QY1a6Qu6OT7/kBmuSRp87mS/n1TN7RElbgnHBpMkx9WE5qKYSflnj4S9md92m3BZV soBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=huypl7LViBwmDvCj8iCuUKGc5zWpZEZmvUVLCWwKtd0=; b=lL0YMnicKAQyeyvgg9TsJhp1uehzhffIh6NN65VUrysbpbSkjjYDLdLAFA8mT/6X4d 61go0ARzjIvV+VlbHvOfF0jDF5WOno0r//J7RaEPjW4mbJky5J1Vm9ZLeO9qTXYq5tu8 Zbr4f0D3+pYQFszCeZhaCFh0SirxZXcEmaYDgWjXzpM8UNWBDpGKXX+0/Ld/Qrwt8MfI /T1ZhNl3Ae9nZuyMETiI7PXh/kLNlWpUv7eZNlIZLxRsH34d5mJWhm1AfdMUwvwfePhc Au1/juouSnCRxAjgM8jItF4sd6wYC+7rE1Nn1psrlpp/5/FZK1dW/Ct6NQGyYPbiRCa2 +SCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c23si9799507pfr.122.2021.04.17.02.28.02; Sat, 17 Apr 2021 02:28:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235904AbhDQJ1x (ORCPT + 99 others); Sat, 17 Apr 2021 05:27:53 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:16597 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhDQJ1u (ORCPT ); Sat, 17 Apr 2021 05:27:50 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FMnjW26hXz17Qt9; Sat, 17 Apr 2021 17:25:03 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Sat, 17 Apr 2021 17:27:13 +0800 Subject: Re: [PATCH v19 4/7] time: Add mechanism to recognize clocksource in time_get_snapshot To: Marc Zyngier CC: , , , , , , , , , , , , , , , , , , , References: <20210330145430.996981-1-maz@kernel.org> <20210330145430.996981-5-maz@kernel.org> From: Zenghui Yu Message-ID: <6e5fb440-156d-2b18-b3cd-89b1a09b0239@huawei.com> Date: Sat, 17 Apr 2021 17:27:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20210330145430.996981-5-maz@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.185.179] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/3/30 22:54, Marc Zyngier wrote: > - u64 cycles; > - ktime_t real; > - ktime_t raw; > - unsigned int clock_was_set_seq; > - u8 cs_was_changed_seq; > + u64 cycles; > + ktime_t real; > + ktime_t raw; > + enum clocksource_ids cs_id; nit: worth adding a description for it (on top of the structure)? > + unsigned int clock_was_set_seq; > + u8 cs_was_changed_seq;