From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796368867; b=uG+4BZVVpYg29H1bWW9ke2d4ZVtQ/CtvGYWAlYzTQ/fqtsNeZQf1khz4fFswkINQXBGG b2pl/lcZ9sBHVipUBDrv0YBlwuYtLCEsLq9+OVVljMeRV9yWzTAOBQb6i7x6N9ilMQJMq gc6kFZApRpqlzpnwERBHsdkG1Bb1Ig29a5c5bViT0OlCIqzuCXI7apcfB8iUUerxSubge 3EGT/85snj3p3ZHJJJPbF6fNA0T7Tlhm5J21841lOSA0QQYHHf82r9w2942g6HUW7OE42 f6DGWDNfM7HEFpuxpMtqvKGuX/9SaQvpEwVs0KOEkn6ZCU+71PX5Uchnr/5hPXPsftw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796368867; h=DMARC-Filter:From:DKIM-Signature:DKIM-Signature:Date:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id: X-B4-Tracking:X-Change-ID:To:Cc:X-Developer-Signature: X-Developer-Key; bh=/rFStQzYY3kXUo1EYABJ0jV40xv+wFiqRifJJ3V0Xdc=; b=vKEcvY0yeqjlqGyIcqui71s64tZBWoZ5XKO2YAHXgkTHo+7Cb7O8FWahhv3+Hw6+ofmm QnIrcdj3zzuwar9mzAQQtLXdzxcKxCDdGpNM+nMVubOWt5ubnZgQWoJc8zWHpNWv79mm1 boxpcBCH6co2YJhr/gzM+qOho0Ffqyfg8rocKARWIabbuOIfBMI6QRIrDMN9CeMfIiRTm 3ZqRLZ4mFHAgmQ8L90BA70Q+kZiXXyF174B2G8lc0aRfbG9qZ9O1gS0KJ/YFyeIqm7WjN 0NcF9w7naVMrhJv9ig93rhSRJ9XlbqJvsMBDbrEPRQrq2J45fHMllicY/bw76q+WxOA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=00FGPkzA; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=LDKgW79a; arc=none smtp.remote-ip=193.142.43.55 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B786D606A33F; Fri, 4 Dec 2026 07:21:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B786D606A33F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=00FGPkzA; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=LDKgW79a From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1796368858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/rFStQzYY3kXUo1EYABJ0jV40xv+wFiqRifJJ3V0Xdc=; b=00FGPkzAR3/9k0pInXmvYISEOQ97LDqfcdPWYLnDeb6hI1FoI3xTJmmMBLZ3J1wCFxAnnb 9SYXb4Kp2rdVKbs/5zSWYPVUjMFXscF3UtWApbx/TAWtkB0RujHFLfxmGCIexKfvDZrlwE Knj/OVbsUO8chgxeJ9Wg08U4mbay+xrI2rzDNo/A1ik2N3iMU9K7JHcbnxsuyIggH8avlX Na7MjV3sJTmldzi6Zwe3dkOLAlkPGyie61BZBNopZ8oqRVCVERtE66id/v1XpSBzSkVMat lQbgvPB0So88DfrB7R13L4e/JvmeXKs/7J9dnEXUnBox/s0pIPEIpv7DIA+5XQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796368858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/rFStQzYY3kXUo1EYABJ0jV40xv+wFiqRifJJ3V0Xdc=; b=LDKgW79aqjP5jJUCrC1D9mGZC2pR7xi3Ft57Z+3WBEK+I5WrMMe+EJmA4s2MRcbudFTNpH SVjgx1tmkYHkz8DA== Date: Fri, 04 Dec 2026 08:20:50 +0100 Subject: [PATCH] clocksource: hyper-v: Drop the non-x86 compatibility code X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20261204-hyperv-clocksource-cleanup-v1-1-a4f1fd3c6bdc@linutronix.de> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x3MTQqAIBBA4avErBPUoL+rRAuzsYZCZaQoorsn7 d63eQ8kZMIEffEA40mJgs9QZQF2NX5BQXM2aKlrpWUl1jsin8LuwW4pHGwxNxp/RFG7qZFN61R nWsiDyOjo+ufD+L4fZaQfu2wAAAA= X-Change-ID: 20261203-hyperv-clocksource-cleanup-6fb7078f19a8 To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Haiyang Zhang , Wei Liu , Dexuan Cui , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1796368857; l=1982; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=yKJqDCwAGp3KC+j7wHq3u1Srp9CvlvsXP6Y61iyv9tY=; b=o8wK9dfQZdAi55UPX8eGmOtl2FRRFbboXrN2c93DyrrEzUzIFgOKkIxxD9eX3xa6t8u7JgyNF 14HzP2zSB7eDdAvofgQdcsfhN5CxpHZn4NBMjPptLLwn0gOrfPQizP3 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The clocksource can only be built on x86. Drop the unnecessary compatibility infrastructure. Also drop the now unused driver-specific define from the architecture headers. Signed-off-by: Thomas Weißschuh --- arch/x86/include/asm/vdso/clocksource.h | 2 -- drivers/clocksource/hyperv_timer.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/arch/x86/include/asm/vdso/clocksource.h b/arch/x86/include/asm/vdso/clocksource.h index 136e5e57cfe1..119ac8612d89 100644 --- a/arch/x86/include/asm/vdso/clocksource.h +++ b/arch/x86/include/asm/vdso/clocksource.h @@ -7,6 +7,4 @@ VDSO_CLOCKMODE_PVCLOCK, \ VDSO_CLOCKMODE_HVCLOCK -#define HAVE_VDSO_CLOCKMODE_HVCLOCK - #endif /* __ASM_VDSO_CLOCKSOURCE_H */ diff --git a/drivers/clocksource/hyperv_timer.c b/drivers/clocksource/hyperv_timer.c index dddfff458ebf..132be7eff0bf 100644 --- a/drivers/clocksource/hyperv_timer.c +++ b/drivers/clocksource/hyperv_timer.c @@ -389,13 +389,11 @@ void hv_adj_sched_clock_offset(u64 offset) hv_sched_clock_offset -= offset; } -#ifdef HAVE_VDSO_CLOCKMODE_HVCLOCK static int hv_cs_enable(struct clocksource *cs) { vclocks_set_used(VDSO_CLOCKMODE_HVCLOCK); return 0; } -#endif static struct clocksource hyperv_cs_tsc = { .name = "hyperv_clocksource_tsc_page", @@ -406,12 +404,8 @@ static struct clocksource hyperv_cs_tsc = { .flags = CLOCK_SOURCE_IS_CONTINUOUS, .suspend = suspend_hv_clock_tsc, .resume = resume_hv_clock_tsc, -#ifdef HAVE_VDSO_CLOCKMODE_HVCLOCK .enable = hv_cs_enable, .vdso_clock_mode = VDSO_CLOCKMODE_HVCLOCK, -#else - .vdso_clock_mode = VDSO_CLOCKMODE_NONE, -#endif }; static u64 notrace read_hv_clock_msr_cs(struct clocksource *arg) --- base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790 change-id: 20261203-hyperv-clocksource-cleanup-6fb7078f19a8 Best regards, -- Thomas Weißschuh