mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
To: Thomas Gleixner <tglx@kernel.org>,
	John Stultz <jstultz@google.com>,
	 Stephen Boyd <sboyd@kernel.org>,
	Miroslav Lichvar <mlichvar@redhat.com>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org,
	loongarch@lists.linux.dev, linuxppc-dev@lists.ozlabs.org,
	linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org,
	sparclinux@vger.kernel.org,
	"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Subject: [PATCH 3/3] clocksource: Drop the inclusion of asm/clocksource.h
Date: Fri, 04 Dec 2026 08:26:09 +0100	[thread overview]
Message-ID: <20261204-vdso-asm-clocksource-v1-3-6fae836f286b@linutronix.de> (raw)
In-Reply-To: <20261204-vdso-asm-clocksource-v1-0-6fae836f286b@linutronix.de>

Only x86 requires asm/clocksource.h. As the generic vDSO infrastructure
includes this header all other architectures are force to provide it.
But on x86 all users of the header already include it explicitly,
making the inclusion from linux/clocksource.h unnecessary.

Drop the inclusion of asm/clocksource.h from linux/clocksource.h.

Also remove all the now unused architecture-specific files.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
 arch/arm/include/asm/clocksource.h       |  7 -------
 arch/arm64/include/asm/clocksource.h     |  7 -------
 arch/csky/include/asm/clocksource.h      |  8 --------
 arch/loongarch/include/asm/clocksource.h | 12 ------------
 arch/mips/include/asm/clocksource.h      | 11 -----------
 arch/powerpc/include/asm/clocksource.h   |  7 -------
 arch/riscv/include/asm/clocksource.h     |  7 -------
 arch/s390/include/asm/clocksource.h      |  7 -------
 arch/sparc/include/asm/clocksource.h     |  8 --------
 include/linux/clocksource.h              |  4 ----
 10 files changed, 78 deletions(-)

diff --git a/arch/arm/include/asm/clocksource.h b/arch/arm/include/asm/clocksource.h
deleted file mode 100644
index 13651c731a81..000000000000
--- a/arch/arm/include/asm/clocksource.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_CLOCKSOURCE_H
-#define _ASM_CLOCKSOURCE_H
-
-#include <asm/vdso/clocksource.h>
-
-#endif /* _ASM_CLOCKSOURCE_H */
diff --git a/arch/arm64/include/asm/clocksource.h b/arch/arm64/include/asm/clocksource.h
deleted file mode 100644
index 482185566b0c..000000000000
--- a/arch/arm64/include/asm/clocksource.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_CLOCKSOURCE_H
-#define _ASM_CLOCKSOURCE_H
-
-#include <asm/vdso/clocksource.h>
-
-#endif
diff --git a/arch/csky/include/asm/clocksource.h b/arch/csky/include/asm/clocksource.h
deleted file mode 100644
index 54da0e49efa1..000000000000
--- a/arch/csky/include/asm/clocksource.h
+++ /dev/null
@@ -1,8 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-
-#ifndef __ASM_VDSO_CSKY_CLOCKSOURCE_H
-#define __ASM_VDSO_CSKY_CLOCKSOURCE_H
-
-#include <asm/vdso/clocksource.h>
-
-#endif
diff --git a/arch/loongarch/include/asm/clocksource.h b/arch/loongarch/include/asm/clocksource.h
deleted file mode 100644
index 58e64aa05d26..000000000000
--- a/arch/loongarch/include/asm/clocksource.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Author: Huacai Chen <chenhuacai@loongson.cn>
- * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
- */
-
-#ifndef __ASM_CLOCKSOURCE_H
-#define __ASM_CLOCKSOURCE_H
-
-#include <asm/vdso/clocksource.h>
-
-#endif /* __ASM_CLOCKSOURCE_H */
diff --git a/arch/mips/include/asm/clocksource.h b/arch/mips/include/asm/clocksource.h
deleted file mode 100644
index 2f1ebbea3d72..000000000000
--- a/arch/mips/include/asm/clocksource.h
+++ /dev/null
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * Copyright (C) 2015 Imagination Technologies
- * Author: Alex Smith <alex.smith@imgtec.com>
- */
-#ifndef __ASM_CLOCKSOURCE_H
-#define __ASM_CLOCKSOURCE_H
-
-#include <asm/vdso/clocksource.h>
-
-#endif /* __ASM_CLOCKSOURCE_H */
diff --git a/arch/powerpc/include/asm/clocksource.h b/arch/powerpc/include/asm/clocksource.h
deleted file mode 100644
index 0a26ef13a34a..000000000000
--- a/arch/powerpc/include/asm/clocksource.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_POWERPC_CLOCKSOURCE_H
-#define _ASM_POWERPC_CLOCKSOURCE_H
-
-#include <asm/vdso/clocksource.h>
-
-#endif /* _ASM_POWERPC_CLOCKSOURCE_H */
diff --git a/arch/riscv/include/asm/clocksource.h b/arch/riscv/include/asm/clocksource.h
deleted file mode 100644
index 482185566b0c..000000000000
--- a/arch/riscv/include/asm/clocksource.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_CLOCKSOURCE_H
-#define _ASM_CLOCKSOURCE_H
-
-#include <asm/vdso/clocksource.h>
-
-#endif
diff --git a/arch/s390/include/asm/clocksource.h b/arch/s390/include/asm/clocksource.h
deleted file mode 100644
index 03434369fce4..000000000000
--- a/arch/s390/include/asm/clocksource.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/* s390-specific clocksource additions */
-
-#ifndef _ASM_S390_CLOCKSOURCE_H
-#define _ASM_S390_CLOCKSOURCE_H
-
-#endif /* _ASM_S390_CLOCKSOURCE_H */
diff --git a/arch/sparc/include/asm/clocksource.h b/arch/sparc/include/asm/clocksource.h
deleted file mode 100644
index 68303ad26eb2..000000000000
--- a/arch/sparc/include/asm/clocksource.h
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
- * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
- */
-
-#ifndef _ASM_SPARC_CLOCKSOURCE_H
-#define _ASM_SPARC_CLOCKSOURCE_H
-
-#endif /* _ASM_SPARC_CLOCKSOURCE_H */
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 283d7297aa79..f5939229697c 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -25,10 +25,6 @@ struct clocksource_base;
 struct clocksource;
 struct module;
 
-#if defined(CONFIG_GENERIC_GETTIMEOFDAY)
-#include <asm/clocksource.h>
-#endif
-
 #include <vdso/clocksource.h>
 
 /**

-- 
2.56.1


  parent reply	other threads:[~2026-12-04  7:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  7:26 [PATCH 0/3] " Thomas Weißschuh
2026-12-04  7:26 ` [PATCH 1/3] MIPS: vdso: Drop the include " Thomas Weißschuh
2026-12-04  7:26 ` [PATCH 2/3] x86/vdso: Drop the include of asm/vdso/clocksource.h Thomas Weißschuh
2026-12-04  7:26 ` Thomas Weißschuh [this message]
2026-12-04 10:33 ` [PATCH 0/3] clocksource: Drop the inclusion of asm/clocksource.h Christophe Leroy (CS GROUP)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204-vdso-asm-clocksource-v1-3-6fae836f286b@linutronix.de \
    --to=thomas.weissschuh@linutronix.de \
    --cc=jstultz@google.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-csky@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=loongarch@lists.linux.dev \
    --cc=mlichvar@redhat.com \
    --cc=sboyd@kernel.org \
    --cc=sparclinux@vger.kernel.org \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®