From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC877C433B4 for ; Sat, 17 Apr 2021 09:27:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A6D77611EF for ; Sat, 17 Apr 2021 09:27:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235901AbhDQJ1x (ORCPT ); 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: kvm@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;