[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v6 05/18] xen/sysctl: wrap around XEN_SYSCTL_sched_id


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Penny Zheng <Penny.Zheng@xxxxxxx>
  • Date: Fri, 4 Jul 2025 17:29:39 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NI/6AN7Kc6qmUPgrDZbatiRRdKNwzya65ykPb1EYoB8=; b=jhagLfU3jeEO0h7BkIAuuFv2isLSYRYVUpoXR3ZLnz63+C2ohaxtjGkE9vFDqHtztt++gxkP+qQlhjXbbtk3q3TvQ2LPAGEyRLfRpW1xGvfGFSbkDkn1eI9vRkQyYIIkI0iRIrNxwA+7B8VFs9Qnsb/RwvrpXajOPU4U1ZFCqPOjj/50NCH/bA4ErKS4V2Rn9YHjJS1p/O2CXOSrUWQZ8QlvHpi/Qf72Sh/6nweu+5C8jTA6HLZQV7814/fQ1kyBEZYIdst1fI95q9egIQm0+HPZpKyx1N2ruYtN6C65U5qMFybAHX0D2TH1ZgeTmZGa84FCHtcCrXjXiUXxHFO3Tw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DFrGxXGoeRU2Yg/dvdpHU1R+IfrHlex/JL8Rtu1+xQkbSx+28vzFAwT4RvaI1aem7Qh0IBN1M2FyJGIAT0UhV/Yk9NxkNDdSUV2EdwFV+7fYpRCmrMRDJ2hw7l9JDje5na4oUMWwItmrLO9THoZfA4UIlpNhp/4CAm6O8fVweewXB104NBvYNr1aUdJAvVOr4VZpBRlRhfQjTTwB2O2CacZq1fPimyiKwhKjVa8bPJwO5uScwvnTy6E7/p1s/VrLhgq/D0ibZ+ln6YXPJiIyYLAdt+kAU+q5xjg87ExIjxubkKa3FDdMO9fKn4RSD/Qn2oJQjLXeuCs7yDqQHB1m5w==
  • Cc: <ray.huang@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, George Dunlap <gwd@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Fri, 04 Jul 2025 09:30:32 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

The following function shall be wrapped:
- scheduler_id()

Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx>
Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
v3 -> v4:
- remove transient "#ifdef CONFIG_SYSCTL"
---
 xen/common/sched/core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c
index 9043414290..13fdf57e57 100644
--- a/xen/common/sched/core.c
+++ b/xen/common/sched/core.c
@@ -2069,11 +2069,13 @@ long do_set_timer_op(s_time_t timeout)
     return 0;
 }
 
+#ifdef CONFIG_SYSCTL
 /* scheduler_id - fetch ID of current scheduler */
 int scheduler_id(void)
 {
     return operations.sched_id;
 }
+#endif
 
 /* Adjust scheduling parameter for a given domain. */
 long sched_adjust(struct domain *d, struct xen_domctl_scheduler_op *op)
-- 
2.34.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.