Message ID | 149156808822.26316.2743892096051912007.stgit@Solace.fritz.box (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A7090602A0 for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 7 Apr 2017 12:30:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 969652026B for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 7 Apr 2017 12:30:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B7E0285E9; Fri, 7 Apr 2017 12:30:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 10D272026B for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 7 Apr 2017 12:30:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1cwSzw-0006Em-3q; Fri, 07 Apr 2017 12:28:16 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <raistlin.df@gmail.com>) id 1cwSzv-0006EL-34 for xen-devel@lists.xenproject.org; Fri, 07 Apr 2017 12:28:15 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id 5C/FE-02138-ED587E85; Fri, 07 Apr 2017 12:28:14 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFIsWRWlGSWpSXmKPExsVyMbThkO6t1uc RBt/fmVl83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBk3z0QXPGKvuPP4PmsD4ya2LkYuDiGBmYwS u1f8ZOli5ORgEVjDKrFxdhBIQkLgEqvEpxVHmUESEgJxEh8nH2KFsCsknh6GaBASUJG4uX0VE 8SkX4wSn7deYgNJCAvoSRw5+oO9i5EDyI6VmLKfAyTMJmAg8WbHXrA5IgJKEvdWTWYCsZkFoi R2n3nFDnGEqsT/m0vAWnkFvCWe9KWAmJwCvhJrf0tBbPWR+P/5D1i1qICcxMrLLWATeQUEJU7 OfMICUs4soCmxfpc+xHB5ie1v5zBPYBSZhaRqFkLVLCRVCxiZVzFqFKcWlaUW6RoZ6CUVZaZn lOQmZuboGhqY6uWmFhcnpqfmJCYV6yXn525iBIZ9PQMD4w7Gxtl+hxglOZiURHkVfJ5ECPEl5 adUZiQWZ8QXleakFh9ilOHgUJLgndbyPEJIsCg1PbUiLTMHGIEwaQkOHiUR3qsgad7igsTc4s x0iNQpRkuOF5ffv2fimHPvK5B8svLHeyYhlrz8vFQpcV5TkAYBkIaM0jy4cbAkcYlRVkqYl5G BgUGIpyC1KDezBFX+FaM4B6OSMG8OyBSezLwSuK2vgA5iAjrI59ZTkINKEhFSUg2M5QmLNXNP yixat1k3hft7UX9SW26j8xLlN7utn7+WFLm0XtK18seUjy+eNf2dkLnFwPzrXX+j+meiG5fOd Oz3cyw4d2fDjEWL93eZXV2Zq1f/ftqjeXOZpjF2/ded/++dnc7MJMs+lokPtvom7/dYdrEj6+ m+zFJLO9/LB/LerNx35XvQGtvDokosxRmJhlrMRcWJADTRp0QNAwAA X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-10.tower-206.messagelabs.com!1491568090!71087458!1 X-Originating-IP: [209.85.128.194] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23282 invoked from network); 7 Apr 2017 12:28:10 -0000 Received: from mail-wr0-f194.google.com (HELO mail-wr0-f194.google.com) (209.85.128.194) by server-10.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 7 Apr 2017 12:28:10 -0000 Received: by mail-wr0-f194.google.com with SMTP id u18so11641154wrc.1 for <xen-devel@lists.xenproject.org>; Fri, 07 Apr 2017 05:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=6ZhHnao09r8wFdxFhje0Z0pXLWeDAGQwIoEQAF82x90=; b=P6AFllgAuUzW1nZn9bFArTUPoSRAO1ajJXTASOOD9+Xdp7XcLwkLz+PpgTC2r5f6xj tZ7OoZ3gRlAAEe6ztAEwujtmErrp6YPY0QnT2NYDIYaJzYFSR17+fI3L+oc9K3AtSayi gOuDyVwLCiNSvfk675kxOYcs1H8iFq6nGskr4tZhxTucMapcM4zzT4I0BNxftSqrZzCf L+p36M2ny+Sdii+pYVJl5cIx5HVo5MmHIia+x1gqE6FwgYHB9yD3KPYIOtQ8ABZzMqQ4 ga07W/SuRFpfiJ/HV+SIBSlbs6KcAal848F2kaIsZv0MVRC5aaxqGxcjruql8uZy+7Pz zYxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:date:message-id :in-reply-to:references:user-agent:mime-version :content-transfer-encoding; bh=6ZhHnao09r8wFdxFhje0Z0pXLWeDAGQwIoEQAF82x90=; b=HFxKuslC2wrtOIpS38ouFrMBTb1nV+0XvMEIPOFZMHW5xPcr1baVS+bsXcZs/wUhfe npFIXPiiJuw359p02Q4e3k3LLtt+LtdUz4iRxsh9D7+BAXbDqTOA6708cUK2bzEK/roe pmZqAk0wRn9YINcBAuwzb7+2JdYX4p2poLtvpMoG/4r507YqcIH/SMkXdtgPX8gblttJ l8UEQZ5uIfv3zuyr1qJoJ6Be3JY65DKkB1be2mnB9CeX9SmJQ/eR0h00ZQ+Fx4vt+Wdc BpZoDxem3Yaqap4LHnhA2JPTmlRlbiEAH1Fs7mlSrPyxKK1ptlvf7+oxk2L6Wr846Cq6 GmbA== X-Gm-Message-State: AFeK/H3weG4FO5HiIayViJqUvI2aQUmE8GN1rv+ZEbsuaRqbmLiHXfPD u3/0tUNhwslq4tI0 X-Received: by 10.28.69.72 with SMTP id s69mr28697641wma.85.1491568090248; Fri, 07 Apr 2017 05:28:10 -0700 (PDT) Received: from Solace.fritz.box ([80.66.223.217]) by smtp.gmail.com with ESMTPSA id v29sm5833478wrv.66.2017.04.07.05.28.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 05:28:09 -0700 (PDT) From: Dario Faggioli <dario.faggioli@citrix.com> To: xen-devel@lists.xenproject.org Date: Fri, 07 Apr 2017 14:28:08 +0200 Message-ID: <149156808822.26316.2743892096051912007.stgit@Solace.fritz.box> In-Reply-To: <149156740206.26316.13423335183353072520.stgit@Solace.fritz.box> References: <149156740206.26316.13423335183353072520.stgit@Solace.fritz.box> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: Stefano Stabellini <sstabellini@kernel.org>, George Dunlap <george.dunlap@citrix.com> Subject: [Xen-devel] [PATCH v3 2/5] xen: sched: make sure a pCPU added to a pool runs the scheduler ASAP X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 5b44a56..646f3d9 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -1823,6 +1823,9 @@ int schedule_cpu_switch(unsigned int cpu, struct cpupool *c) out: per_cpu(cpupool, cpu) = c; + /* When a cpu is added to a pool, trigger it to go pick up some work */ + if ( c != NULL ) + cpu_raise_softirq(cpu, SCHEDULE_SOFTIRQ); return 0; }