Message ID | 150114247011.22910.8748737009029672283.stgit@Solace (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 974EF6038C for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 27 Jul 2017 08:03:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8940D28780 for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 27 Jul 2017 08:03:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DB2628796; Thu, 27 Jul 2017 08:03:58 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,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 74DA228780 for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 27 Jul 2017 08:03:57 +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 1dadjP-0000Ch-EU; Thu, 27 Jul 2017 08:01:15 +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 1dadjO-0000CV-V9 for xen-devel@lists.xenproject.org; Thu, 27 Jul 2017 08:01:15 +0000 Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id 48/53-18997-ACD99795; Thu, 27 Jul 2017 08:01:14 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDIsWRWlGSWpSXmKPExsVyMbThoO6JuZW RBmtbNS2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oyu5fsZCx6LVEx7mtLA2C7YxcjFISQwk1Fi RmsnK4jDIrCGVeLduxtsXYycHBICl1glHty0g7DjJNY+uMMOYVdJfPy6kRnEFhJQkbi5fRUTx KRfjBKNi0+ygCSEBfQkjhz9wQ5hh0n8XjodrIFNwEDizY69rCC2iICSxL1Vk8GamQVmM0lcmX kDqJkD6AxViY37nUFMXgFHif4dkiDlnALOEpdPbGCB2OskcXrXKrA7RQXkJFZebgEbySsgKHF y5hOwKcwCmhLrd+mDhJkF5CW2v53DPIFRZBaSqlkIVbOQVC1gZF7FqFGcWlSWWqRraKCXVJSZ nlGSm5iZA+SZ6uWmFhcnpqfmJCYV6yXn525iBIY+AxDsYFwz1fkQoyQHk5Io7yTTikghvqT8l MqMxOKM+KLSnNTiQ4wyHBxKErzhcyojhQSLUtNTK9Iyc4BRCJOW4OBREuG1BEnzFhck5hZnpk OkTjFacly5su4LE8eG1euB5JQD278wCbHk5eelSonzzgNpEABpyCjNgxsHSxSXGGWlhHkZgQ4 U4ilILcrNLEGVf8UozsGoJMzrBjKFJzOvBG7rK6CDmIAOmtgEdlBJIkJKqoHRxezDrc3nz5fp H/z40c/6V+fyY3fPt0hIG3JVvCq/t9+jd5kcd8iBNxerOo4uYzr3+9fyJ5rVcdnTTv565BkkY /mSQ+2LxsoGnQvvH0tVu5rJq25ym/519vfv+WedGn06qjPerlmcZ77H6cU8jQfnVB/Pym+JWT vXQ/X7Plv21Q3fNsmf3WQYr8RSnJFoqMVcVJwIAP6hYb4PAwAA X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-11.tower-206.messagelabs.com!1501142472!84942222!1 X-Originating-IP: [209.85.128.193] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23048 invoked from network); 27 Jul 2017 08:01:12 -0000 Received: from mail-wr0-f193.google.com (HELO mail-wr0-f193.google.com) (209.85.128.193) by server-11.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 27 Jul 2017 08:01:12 -0000 Received: by mail-wr0-f193.google.com with SMTP id y43so23725828wrd.0 for <xen-devel@lists.xenproject.org>; Thu, 27 Jul 2017 01:01:12 -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=1ish8extx06PHo4LZ9i1t0CFsevQ6klSrEp1wHXIlLo=; b=YE1pwdXhV+quB8KsPRN/mGZYaQljNAAvA6ujWMpmjsBZzaG6MGeo2Q+RgW/TtsQpu/ XVQV/1hpf3pGcM959mA6rXjsoQDaIzeLcItg4dIGsUMw+Hk+/8f2pIAEepRuflJqJOL+ FJ2yHdXnVnwPGPmqne3Hpy2NBP99msfV3F7dzCCbqqrOB/SLLrfyqmXayvQsGSlG8WVy IegqfVUteYiL1jwM0VHo02/wXMsM19tZaVvEUXGufjDsY1xYDYYEzcM8kj3vR3C0sfSW cGS/6DHuT5rIevOjJx35InJTzRezJPdOt/dTYXj3ghtBs1lbXdqu48LwJBVQBpLrMWMm ZMIQ== 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=1ish8extx06PHo4LZ9i1t0CFsevQ6klSrEp1wHXIlLo=; b=FYaJtgO/+ICwtlUVQYbO2+CXtE53Ah0vpkmUG6Nni+Y7UIf9lNgskwttgTtYhNI5Sz 2XJRIsoPJ38/nQP7P1svWhsKdssgePHBeNivHaA1rmj6kccMmCAiykV5kZxiUpgjuKWq PA6cFqu7iXsQViabNy/Zzjl+LvjmzPodkMl+opJPpNBK4DBanqLh048DKixINl1qYvxe +d3IoFJFcrRQABl7/kZJe/pz1+FYASxFFh49ITKU50bhoUn7aYQhc1QPeN7U0GxijOGi LnKUEU/sll0fX7QIlNkurcA0an3P/RaPpXP3yKqXyJ9eaOFW3VR+Fjjqjiq/a/jiclZk VI8g== X-Gm-Message-State: AIVw112LDgaXFkIsRPok/Rr11HkXbQa09sLrlfNr5zrAysXL5qHNPLz6 MsaxvQw1QFMP6A== X-Received: by 10.223.166.68 with SMTP id k62mr2639372wrc.283.1501142472233; Thu, 27 Jul 2017 01:01:12 -0700 (PDT) Received: from [192.168.0.31] ([80.66.223.212]) by smtp.gmail.com with ESMTPSA id z190sm16443795wmz.31.2017.07.27.01.01.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2017 01:01:11 -0700 (PDT) From: Dario Faggioli <dario.faggioli@citrix.com> To: xen-devel@lists.xenproject.org Date: Thu, 27 Jul 2017 10:01:10 +0200 Message-ID: <150114247011.22910.8748737009029672283.stgit@Solace> In-Reply-To: <150114201043.22910.12807057883146318803.stgit@Solace> References: <150114201043.22910.12807057883146318803.stgit@Solace> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: Stefano Stabellini <sstabellini@kernel.org>, George Dunlap <george.dunlap@eu.citrix.com>, Andrew Cooper <andrew.cooper3@citrix.com>, Tim Deegan <tim@xen.org>, Julien Grall <julien.grall@arm.com>, Jan Beulich <jbeulich@suse.com> Subject: [Xen-devel] [PATCH 1/5] xen: in do_softirq() sample smp_processor_id() once and for all. 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/softirq.c b/xen/common/softirq.c index ac12cf8..67c84ba 100644 --- a/xen/common/softirq.c +++ b/xen/common/softirq.c @@ -27,16 +27,12 @@ static DEFINE_PER_CPU(unsigned int, batching); static void __do_softirq(unsigned long ignore_mask) { - unsigned int i, cpu; + unsigned int i, cpu = smp_processor_id(); unsigned long pending; for ( ; ; ) { - /* - * Initialise @cpu on every iteration: SCHEDULE_SOFTIRQ may move - * us to another processor. - */ - cpu = smp_processor_id(); + ASSERT(cpu == smp_processor_id()); if ( rcu_pending(cpu) ) rcu_check_callbacks(cpu);