Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4913374ybl; Mon, 9 Dec 2019 19:42:07 -0800 (PST) X-Google-Smtp-Source: APXvYqy55lj66DRN50Jtpl9v+p0e2vUZOEqzKd9Y6Ugn69kXCzIOS6YODXVf7jw6J4QfarUauPi3 X-Received: by 2002:a9d:7147:: with SMTP id y7mr23420294otj.353.1575949327525; Mon, 09 Dec 2019 19:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575949327; cv=none; d=google.com; s=arc-20160816; b=NlFeteu3vUA54NO8pWicaWqz5sSWlls9kYOE47LyOHR67aYxhb3nZyvsvzzRKWID2c uFBTa4NFTxNYGtRMre0Zd875eK+9JyWWCsX4F429hfy3jT5OtTKwbDPAiUevvF9Rk3tJ nRpHjiItzolVBmBhk4/9MkVwHv0UTXC6ePvBQ08uY5YmD1Zmg4UUwwygnJ5+ebCSgjVk FkU4P3HeSblKVZk1kXPR3N7zfstG6Tq0sLHZ88jtcOhGozo1pDh9ownoz/It+VljRyzA du3w1IFO+HBGILsqCdUBr9ogiPeEdPR3976Or+a+ZeTlDZddp44FKPh4BndtmU6HMDr9 Clbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=nEQOL4pzYxlfLJprvmlOjCL5OK2iI3ctDno0iyyGgQc=; b=V7omirQZ9CMvf8+ALhxDIicizZA5sW2UoqOC5yDG4STvGcHO0e1ku0bSjeI+FCYd3A l/RJXmPOrGnBHzstNsNXr/kd3hG4DV3IXL08qpnwNogUp2va7ToEQ63WVHyMFtnZGfh9 H07Vkstvho1B5w+9bU4SOHE9Pl4jcZWAgRXbUBQePV5dPNPu0KP85ZzSLeKLzrEuEBbN fRm40L/xoSr8Bgm9jvoUmRDES/BvVLjq+jejcdNQcQDx4NMkE0Slq0udJVaVYJHytUNh oeeJFAuJTzL5AxQlMj2ajDQBoZwtJCcBZW117jvES3JZSmT7JZJeznowI0F5xhepLrDv lCYw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si135985oir.132.2019.12.09.19.41.55; Mon, 09 Dec 2019 19:42:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727219AbfLJDlJ (ORCPT + 99 others); Mon, 9 Dec 2019 22:41:09 -0500 Received: from foss.arm.com ([217.140.110.172]:55958 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfLJDlI (ORCPT ); Mon, 9 Dec 2019 22:41:08 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CED8C1045; Mon, 9 Dec 2019 19:41:07 -0800 (PST) Received: from entos-d05.shanghai.arm.com (entos-d05.shanghai.arm.com [10.169.40.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A6BD03F52E; Mon, 9 Dec 2019 19:41:02 -0800 (PST) From: Jianyong Wu To: netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, tglx@linutronix.de, pbonzini@redhat.com, sean.j.christopherson@intel.com, maz@kernel.org, richardcochran@gmail.com, Mark.Rutland@arm.com, will@kernel.org, suzuki.poulose@arm.com, steven.price@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Steve.Capper@arm.com, Kaly.Xin@arm.com, justin.he@arm.com, jianyong.wu@arm.com, nd@arm.com Subject: [RFC PATCH v9 5/8] clocksource: Add clocksource id for arm arch counter Date: Tue, 10 Dec 2019 11:40:23 +0800 Message-Id: <20191210034026.45229-6-jianyong.wu@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191210034026.45229-1-jianyong.wu@arm.com> References: <20191210034026.45229-1-jianyong.wu@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clocksource id for arm arch counter to let it be identified easily and elegantly in ptp_kvm implementation for arm. Signed-off-by: Jianyong Wu --- drivers/clocksource/arm_arch_timer.c | 2 ++ include/linux/clocksource_ids.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 07e57a49d1e8..277846decd33 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -187,6 +188,7 @@ static u64 arch_counter_read_cc(const struct cyclecounter *cc) static struct clocksource clocksource_counter = { .name = "arch_sys_counter", + .id = CSID_ARM_ARCH_COUNTER, .rating = 400, .read = arch_counter_read, .mask = CLOCKSOURCE_MASK(56), diff --git a/include/linux/clocksource_ids.h b/include/linux/clocksource_ids.h index 5595ab843c3d..93bec8426c44 100644 --- a/include/linux/clocksource_ids.h +++ b/include/linux/clocksource_ids.h @@ -5,6 +5,7 @@ /* Enum to give clocksources a unique identifier */ enum clocksource_ids { CSID_GENERIC = 0, + CSID_ARM_ARCH_COUNTER, CSID_MAX, }; -- 2.17.1