Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3351660rdb; Tue, 6 Feb 2024 15:20:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVb4j75AEXmF3I0H+TA2DTdXcX+Xrqd4PCI0w/zr49kYbLGzE69lkm0liA55E+UH5Kua9DJX6M5+FJ6PzrG/LIiUDOvjrnmhc3mncKlfQ== X-Google-Smtp-Source: AGHT+IFK1oUB1mWh06OgYth9/cJ9PdIeeJmpUmoXl1OLXouaGWcnDJcR3NZE+5NhQcxhljWkIM+d X-Received: by 2002:ac8:1117:0:b0:42c:14b7:b617 with SMTP id c23-20020ac81117000000b0042c14b7b617mr3752302qtj.3.1707261647666; Tue, 06 Feb 2024 15:20:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707261647; cv=pass; d=google.com; s=arc-20160816; b=zoiJVGLS6wOW0FeLXw9klnAnZxpL1n+zbRy4Pi/wHpFpg1z4U6XbMRvoNLxcZWqfN5 +Sbb2T8ogM6kzL52y3JhXve9gjXF53Pdw7bYZaDI6nsgDR0qc4Ud5JI3ifaKkmfVPuQN RyN4Tx9Ew+nFOIvwJOmsXH3Gdde7H3sE2QQTr9ZvVeRMqOHGsBldVelyyjAMP0WUm+Aj mvC4YgrySE5v9YF0+pgpd48eJile1jtXFiEAmb2XSQSdNDDD8HrGxIzt7KGBg3jYm/ZX MSJE7mRSQz2PdkfWDUvg+sdAAeuh5SCJlgD4d68be1TAI0dIYlGOTC/dMM7tYtb+VRkk ixjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=go0SkaLsBPviA0J2eIpKfd8yLirQV+vAYEPS9D83ZG4=; fh=Z9jUFPb4OBWf+aEbLNYwjJ1u8qs3bnSJarlMzc8KrD8=; b=pJnuyaQlJTtuOKJOtiNqhS2wLNXf2JIW215X4RywD1vb2I/VamA/+043CVWI3U0PRI iil+qM4SN1d4PAz6n8PpviYFoOIYJDx2gRCwQqRq8AL6kFgI6oeDLnXa6c+He4iI9Ffh qlVQR7Au0Xc2MeITZ1VXv8cvFnlUM9I1VdhXimQ2G12TRnohO3qoBTxx9SJclOxcsTEJ 9fpdwt5ZlqVl7wgqnVIBzNSq+3SKkc1PGzt2kXfRB5fy+A2asBI62TtRLDFQSyMmgai4 +1u/AYoywNde1MKM1v20bo40FFn+8Z9+igG54EBPzWvsHkNAz0hmg4ZfiPFrT45OEpVB W7Ag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H5iOZ77h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWtTWT+yDKf/tqvGCxPYMs1NxbBfaa4pP3rNg7dpUlmMQwZEeWfMU+NmdFcgPH9WFpdvayc/0ahR9wD7btMx9FDi/luejtPmswOEPcDXw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y8-20020ac85f48000000b0042c30efae3asi3400264qta.695.2024.02.06.15.20.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 15:20:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H5iOZ77h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 665CB1C21708 for ; Tue, 6 Feb 2024 23:20:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57A171CD17; Tue, 6 Feb 2024 23:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H5iOZ77h" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 776761CD19; Tue, 6 Feb 2024 23:20:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707261640; cv=none; b=nUmLXHcDRIc8N9E2QQqzkq+adDLe+DgoGv0tnslz+4ui5UL9hDARJvsih0bhZ9s0T6Tk1ixngjhu3rS3awRExwP1Xa6XMD5rxMbsBZQ8ussyz4YI0QcHhrgEP8YTbgsJMGV0KqVw9/CyDPcEu1qHgrgOMznz+AiLqrA4VmaRPGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707261640; c=relaxed/simple; bh=1O9RvWgEImib2iF51r5QYr1VDYDSSOzJ9bKUEoxfyA8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aZazPOJskmTnYSowzJ7OxoD2RFESdCxYiVq1vwrokyQ6IcYp3eFIUNoBa+SDcaOyEO7lZqpEnefgmbju07AQm0FXEaXcUzhVA0Pao+zibLy9AWmFwFIvKRquO9PZXm3GyAyqQQVQuSornztswP6nIvdk2N03eb3kj7iCcKDarC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H5iOZ77h; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68CCFC433F1; Tue, 6 Feb 2024 23:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707261640; bh=1O9RvWgEImib2iF51r5QYr1VDYDSSOzJ9bKUEoxfyA8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H5iOZ77hy5azlnJnGSyQdl4mhV2QCSpLc03NRtFn/YccY2rA3WUNmT0O2OGzZ4+sb APKAEO2dBqXiyKR6pv6SRbtOOxA5OmZ/ZB3THAEwTODuO2IHIi/HsY8d6qVi7FaVvC Cl0PPplbM88qe73PhLyGAML1/E23IiVS+mqwCsSM1/Ik1at9AN2t0mJgFnINMd0epr m0hjrx1Ss6L+E/Qy3jQXrJ9QXvI35J6PdcDUJSjFqAlgp7suRJXeUzh35NHim+7F2l 8e5gZuZMP5trLx514I7b961ZTrSSN3CKIFCoBc87XzSxl05XS1+XLz5HL5K3VQr2Y+ KYX3PG36klLYw== Date: Wed, 7 Feb 2024 00:20:36 +0100 From: Frederic Weisbecker To: Alexander Gordeev Cc: Ingo Molnar , Michael Ellerman , Heiko Carstens , Vasily Gorbik , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 2/5] sched/vtime: get rid of generic vtime_task_switch() implementation Message-ID: References: <1f519a8c86cf13bc4acd18ed5d8d1705d1554083.1706470223.git.agordeev@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1f519a8c86cf13bc4acd18ed5d8d1705d1554083.1706470223.git.agordeev@linux.ibm.com> Le Sun, Jan 28, 2024 at 08:58:51PM +0100, Alexander Gordeev a ?crit : > The generic vtime_task_switch() implementation gets built only > if __ARCH_HAS_VTIME_TASK_SWITCH is not defined, but requires an > architecture to implement arch_vtime_task_switch() callback at > the same time, which is confusing. > > Further, arch_vtime_task_switch() is implemented for 32-bit PowerPC > architecture only and vtime_task_switch() generic variant is rather > superfluous. > > Simplify the whole vtime_task_switch() wiring by moving the existing > generic implementation to PowerPC. > > Signed-off-by: Alexander Gordeev Reviewed-by: Frederic Weisbecker