Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1171974pxk; Fri, 4 Sep 2020 02:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2Kgfe23aKzLwAmDJ35NMK10pU/S+2/AqWbw6+vAyiTNwRNKpipP5/ZotVP3IT9qZQN6ZY X-Received: by 2002:aa7:cfc7:: with SMTP id r7mr7813395edy.24.1599211955022; Fri, 04 Sep 2020 02:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599211955; cv=none; d=google.com; s=arc-20160816; b=yIUhJbnLJSz4kpapdSN7BcCyHdhWX8RXEOxPPT8PvqrpX9hk1TSQ/bHs6MT5sStuFM d5Psob1u1TGpiQjlKLZuYv5YXE6OaDSv+fB4e3/4hRYNCNLyLilC4d38vy/RJhzHnv+z iq+x5SSMoGDweL75c5boHw5TYOcR24upICcZWkHDQ2CJ5lhuXT+hQxX8SSeOJ9OYARUv VzQilPyJfEB+F4/C8FIn+q+HyEO8oC90hhnMPTI0lxMX6ehGfP+itwI79jjwJps9UOGJ wtvkblfTvmsJmep2W5Eri2mPDw/Wia8EUTgLf1P7a2FoJujInOjqhCxIUtLCLaHzbuma gbDQ== 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=T/MTVe20yIhG5nstjE4laQII11YAiID2HCUbItEoDzg=; b=AXZ1jWq+f3BznHcQ2faF9s9my9YbSnqa7g3RaLntHeSAKOPpkFzO+uVCIRJZkCUzeH /2X6P6dcYCcIZMJSqwCiRKnIOhsLH3LxjdBUfJcXkf9pf6nhf5/fvi09XbSxx0Niy2Cp TZtDRvcVA+KPCuggF6OebazZNTD+MAOlLE4ZRyIlzBEqaWyjLcTpYMIxXg5rJJKpRyfz F+m9ARaj2eOHNDix4D88bi1ddf/H9DMU/qjMyMB9n8LWRmQU7iDSWa3jMJJtUewrtOBH SMz/T+C8rN/JY6AdvEEszkXHR0XbYtnLGuHPZvGVP0mi14ainSTv5O77ZKY2qlqdw8Zn eP3w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si3620686ejz.137.2020.09.04.02.32.11; Fri, 04 Sep 2020 02:32:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730206AbgIDJ3j (ORCPT + 99 others); Fri, 4 Sep 2020 05:29:39 -0400 Received: from foss.arm.com ([217.140.110.172]:46866 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729978AbgIDJ3g (ORCPT ); Fri, 4 Sep 2020 05:29:36 -0400 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 6AC031477; Fri, 4 Sep 2020 02:29:35 -0700 (PDT) Received: from localhost.localdomain (entos-thunderx2-desktop.shanghai.arm.com [10.169.212.215]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B7FC73F66F; Fri, 4 Sep 2020 02:29:29 -0700 (PDT) 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, justin.he@arm.com, jianyong.wu@arm.com, nd@arm.com Subject: [PATCH v14 06/10] clocksource: Add clocksource id for arm arch counter Date: Fri, 4 Sep 2020 17:27:40 +0800 Message-Id: <20200904092744.167655-7-jianyong.wu@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200904092744.167655-1-jianyong.wu@arm.com> References: <20200904092744.167655-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 6c3e84180146..d55acffb0b90 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 @@ -191,6 +192,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 4d8e19e05328..16775d7d8f8d 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