All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: arm64: Select SCHED_INFO before SCHEDSTATS
@ 2019-10-23  3:22 ` Mao Wenan
  0 siblings, 0 replies; 24+ messages in thread
From: Mao Wenan @ 2019-10-23  3:22 UTC (permalink / raw)
  To: maz, james.morse, julien.thierry.kdev, suzuki.poulose,
	catalin.marinas, will, steven.price
  Cc: Mao Wenan, kernel-janitors, kvmarm, linux-arm-kernel,
	linux-kernel

If KVM=y, it will select SCHEDSTATS, below erros can
be seen:
kernel/sched/stats.h: In function rq_sched_info_arrive:
kernel/sched/stats.h:12:20: error: struct sched_info
has no member named run_delay
   rq->rq_sched_info.run_delay += delta;
                    ^
kernel/sched/stats.h:13:20: error: struct sched_info
has no member named pcount
   rq->rq_sched_info.pcount++;
                    ^
kernel/sched/stats.h: In function rq_sched_info_dequeued:
kernel/sched/stats.h:31:20: error: struct sched_info has
no member named run_delay
   rq->rq_sched_info.run_delay += delta;

These are because CONFIG_SCHED_INFO is not set, This patch 
is to select SCHED_INFO before SCHEDSTATS.

Fixes: 8564d6372a7d ("KVM: arm64: Support stolen time reporting via shared structure")
Signed-off-by: Mao Wenan <maowenan@huawei.com>
---
 arch/arm64/kvm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig
index d8b88e4..3c46eac 100644
--- a/arch/arm64/kvm/Kconfig
+++ b/arch/arm64/kvm/Kconfig
@@ -39,6 +39,7 @@ config KVM
 	select IRQ_BYPASS_MANAGER
 	select HAVE_KVM_IRQ_BYPASS
 	select HAVE_KVM_VCPU_RUN_PID_CHANGE
+	select SCHED_INFO
 	select SCHEDSTATS
 	---help---
 	  Support hosting virtualized guest machines.
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2019-10-24 13:34 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-23  3:22 [PATCH] KVM: arm64: Select SCHED_INFO before SCHEDSTATS Mao Wenan
2019-10-23  3:22 ` Mao Wenan
2019-10-23  3:22 ` Mao Wenan
2019-10-23  3:22 ` Mao Wenan
2019-10-23 12:32 ` Steven Price
2019-10-23 12:32   ` Steven Price
2019-10-23 12:32   ` Steven Price
2019-10-23 12:32   ` Steven Price
2019-10-23 16:51 ` Marc Zyngier
2019-10-23 16:51   ` Marc Zyngier
2019-10-23 16:51   ` Marc Zyngier
2019-10-23 16:51   ` Marc Zyngier
2019-10-24 11:22   ` Steven Price
2019-10-24 11:22     ` Steven Price
2019-10-24 11:22     ` Steven Price
2019-10-24 11:22     ` Steven Price
2019-10-24 13:19     ` Marc Zyngier
2019-10-24 13:19       ` Marc Zyngier
2019-10-24 13:19       ` Marc Zyngier
2019-10-24 13:19       ` Marc Zyngier
2019-10-24 13:31       ` [PATCH v2] KVM: arm64: Select TASK_DELAY_ACCT+TASKSTATS rather than SCHEDSTATS Steven Price
2019-10-24 13:31         ` Steven Price
2019-10-24 13:31         ` Steven Price
2019-10-24 13:31         ` Steven Price

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.