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

Re: [PATCH v4 2/3] xen/sched: Link CPU topology to scheduler





On 7/3/26 11:15 AM, Hirokazu Takahashi wrote:

/*
diff --git a/xen/common/sched/credit2.c b/xen/common/sched/credit2.c
index 95946634d1..ada430f262 100644
--- a/xen/common/sched/credit2.c
+++ b/xen/common/sched/credit2.c
@@ -9,6 +9,7 @@
   * Based on an earlier verson by Emmanuel Ackaouy.
   */
+#include <xen/cpu-topology.h>
  #include <xen/errno.h>
  #include <xen/init.h>
  #include <xen/lib.h>
@@ -37,6 +38,8 @@ static unsigned int cpu_nr_siblings(unsigned int cpu)
  {
  #ifdef CONFIG_X86
      return cpu_data[cpu].x86_num_siblings;
+#elif defined(CONFIG_CPU_TOPOLOGY)
+    return cpu_topology ? cpu_topology[cpu].num_siblings : 1;

Shouldn't here be CONFIG_GENERIC_CPU_TOPOLOGY?

~ Oleksii



 


Rackspace

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