From patchwork Wed Jan 8 15:23:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juergen Gross X-Patchwork-Id: 11323919 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 83F07109A for ; Wed, 8 Jan 2020 15:24:47 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6AB8B20720 for ; Wed, 8 Jan 2020 15:24:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6AB8B20720 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ipDBG-0004O2-NJ; Wed, 08 Jan 2020 15:23:34 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ipDBF-0004Nn-4H for xen-devel@lists.xenproject.org; Wed, 08 Jan 2020 15:23:33 +0000 X-Inumbo-ID: d441646a-322a-11ea-b82c-12813bfff9fa Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id d441646a-322a-11ea-b82c-12813bfff9fa; Wed, 08 Jan 2020 15:23:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 66C1DB1E2; Wed, 8 Jan 2020 15:23:31 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org Date: Wed, 8 Jan 2020 16:23:19 +0100 Message-Id: <20200108152328.27194-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Subject: [Xen-devel] [PATCH v2 0/9] xen: scheduler cleanups X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Stefano Stabellini , Julien Grall , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Dario Faggioli , Josh Whitehead , Meng Xu , Jan Beulich , Stewart Hildebrand , Volodymyr Babchuk , =?utf-8?q?Roger_Pau_Monn?= =?utf-8?q?=C3=A9?= MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Move all scheduler related hypervisor code to xen/common/sched/ and do a lot of cleanups. Juergen Gross (9): xen/sched: move schedulers and cpupool coding to dedicated directory xen/sched: make sched-if.h really scheduler private xen/sched: cleanup sched.h xen/sched: remove special cases for free cpus in schedulers xen/sched: use scratch cpumask instead of allocating it on the stack xen/sched: replace null scheduler percpu-variable with pdata hook xen/sched: switch scheduling to bool where appropriate xen/sched: eliminate sched_tick_suspend() and sched_tick_resume() xen/sched: add const qualifier where appropriate MAINTAINERS | 8 +- xen/arch/arm/domain.c | 6 +- xen/arch/x86/acpi/cpu_idle.c | 15 +- xen/arch/x86/cpu/mwait-idle.c | 8 +- xen/arch/x86/dom0_build.c | 5 +- xen/common/Kconfig | 66 +----- xen/common/Makefile | 8 +- xen/common/domain.c | 70 ------ xen/common/domctl.c | 135 +---------- xen/common/rcupdate.c | 7 +- xen/common/sched/Kconfig | 65 ++++++ xen/common/sched/Makefile | 7 + xen/common/{sched_arinc653.c => sched/arinc653.c} | 15 +- xen/common/{compat/schedule.c => sched/compat.c} | 2 +- xen/common/{schedule.c => sched/core.c} | 246 ++++++++++++++++++--- xen/common/{ => sched}/cpupool.c | 23 +- xen/common/{sched_credit.c => sched/credit.c} | 65 +++--- xen/common/{sched_credit2.c => sched/credit2.c} | 85 +++---- xen/common/{sched_null.c => sched/null.c} | 105 ++++++--- .../xen/sched-if.h => common/sched/private.h} | 18 +- xen/common/{sched_rt.c => sched/rt.c} | 109 +++++---- xen/include/xen/domain.h | 3 + xen/include/xen/rcupdate.h | 3 - xen/include/xen/sched.h | 39 ++-- 24 files changed, 568 insertions(+), 545 deletions(-) create mode 100644 xen/common/sched/Kconfig create mode 100644 xen/common/sched/Makefile rename xen/common/{sched_arinc653.c => sched/arinc653.c} (99%) rename xen/common/{compat/schedule.c => sched/compat.c} (97%) rename xen/common/{schedule.c => sched/core.c} (92%) rename xen/common/{ => sched}/cpupool.c (97%) rename xen/common/{sched_credit.c => sched/credit.c} (97%) rename xen/common/{sched_credit2.c => sched/credit2.c} (98%) rename xen/common/{sched_null.c => sched/null.c} (92%) rename xen/{include/xen/sched-if.h => common/sched/private.h} (96%) rename xen/common/{sched_rt.c => sched/rt.c} (94%)