Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3528988pxv; Mon, 19 Jul 2021 02:26:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJONwX8ClhOJkNO2hDPlMUeo2AoRd8/UcuWLIZ/doWdpA+kyhxrwyxeWv41TYOjsLUOyb5 X-Received: by 2002:a05:6402:1a57:: with SMTP id bf23mr33309130edb.312.1626686773117; Mon, 19 Jul 2021 02:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626686773; cv=none; d=google.com; s=arc-20160816; b=wPtijV5uKOY/9OZZPo+0M6Z1/6HGCwfiE2S9CADaIsKmWobUS3vfNDtptogtjTpavp 5es4W0cqFszCyLxOxR6NPV4xgtCWYPKLb4p5sMKja8dLXSDy3RL9lgd4EFRaCwv9RAFq zEtyNqC2T7VgLUuqiV3hGpXmPxlZ4UHokMuAaBy7BAOZKntnilNE9N4ea0DbptjZu0Fc fiTBTJ7/7xfVqMolf1rEqUVykREwAiLcEtXpiFml8KKKm/s32xv2jivMOlFEg5bzO51f 5xTc9Wr3IYbnEurmI9DW/O2P1va9y6MaocrBHoidEa1KTXvddW+SOtzniyw0BSVjslQD 6aiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=D3+c2ib1Q+/SzUS6dxaIqKRFtrtYa6zrwTRQZyhXL/s=; b=kpvkqFtP64X3xj538a6j1vOSqORI0YcPIgYzrHjNMcjzPrLYL4UV5xlonmiOnIWK9e eZEWZlkrAcqz3jhleg4dJBy8oM4uGDsvYQXzXaoiDDQkUyb8e1p95H19eb5QxvWknK7G qrN8OF20CchKsEqH/ySVWe15uXjdaYMvR64DK19Svy9lQyiV4SUr+Zce9MQZnddhR9q4 2V3f40RTWU89t1IMefUWztpDPcReSWT686HXISFNEoQHg0nV8gUvWQHziat9p5304inf d0MG5YoRoGZyDT3dmFosDJaMahXsm/JHJixq4OhZOyHwhbzDg73XFbxlggXRLfJBNny7 dDHw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si11808366edd.187.2021.07.19.02.25.50; Mon, 19 Jul 2021 02:26:13 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235278AbhGSInj (ORCPT + 99 others); Mon, 19 Jul 2021 04:43:39 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:46063 "EHLO mail-wr1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235172AbhGSIni (ORCPT ); Mon, 19 Jul 2021 04:43:38 -0400 Received: by mail-wr1-f42.google.com with SMTP id t5so21109300wrw.12; Mon, 19 Jul 2021 02:24:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=D3+c2ib1Q+/SzUS6dxaIqKRFtrtYa6zrwTRQZyhXL/s=; b=SNErU1uzo5XPbbJ379D2iIP2IgpV1Yr60F21uMAoadqgEt5kT49PxRRIW2cw5NBJFm x3HaBAsy4KahAWOhJ60bXU69DEpeRjfJp7Dqok7gbctXDyi4Ws/lWKtNKgC08ElRw+3K +ie++AjoEJiDVpC+VlnkCdV/hdSiF5XDZZOGTEQWhibFB8ZEAemVTVbW4LhWPMBiEL5C dHHMcKY1RYy1+lop4yOTP/9VqsEaJkEhLHpQY26CGlhId8qnboqMNYKt4n2AN8nUKUFf CER2lBS+6aDnEWmgnTjvzijLoPzLcdKI6kOTpz/+jkp3ZhKHXGmMsg1xor2/hvK6bsjw 4EIA== X-Gm-Message-State: AOAM533zb3HRPnaGU9L4FSG0W0d8lnLEXcwMQsLg7H6ELy9oOOK5et8Q etgpQ55EVn9k1GXsczyhTBg= X-Received: by 2002:a5d:53c5:: with SMTP id a5mr28942225wrw.15.1626686657747; Mon, 19 Jul 2021 02:24:17 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id z7sm15190274wmp.34.2021.07.19.02.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 02:24:17 -0700 (PDT) Date: Mon, 19 Jul 2021 09:24:15 +0000 From: Wei Liu To: Michael Kelley Cc: sthemmin@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, daniel.lezcano@linaro.org, tglx@linutronix.de, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 1/1] drivers: hv: Decouple Hyper-V clock/timer code from VMbus drivers Message-ID: <20210719092415.vgx2xsk2vsppojzp@liuwe-devbox-debian-v2> References: <1626220906-22629-1-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1626220906-22629-1-git-send-email-mikelley@microsoft.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 05:01:46PM -0700, Michael Kelley wrote: > Hyper-V clock/timer code in hyperv_timer.c is mostly independent from > other VMbus drivers, but building for ARM64 without hyperv_timer.c > shows some remaining entanglements. A default implementation of > hv_read_reference_counter can just read a Hyper-V synthetic register > and be independent of hyperv_timer.c, so move this code out and into > hv_common.c. Then it can be used by the timesync driver even if > hyperv_timer.c isn't built on a particular architecture. If > hyperv_timer.c *is* built, it can override with a faster implementation. > > Also provide stubs for stimer functions called by the VMbus driver when > hyperv_timer.c isn't built. > > No functional changes. > > Signed-off-by: Michael Kelley Applied to hyperv-next. Thanks.