From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Nicholas Mc Guire <hofrat@osadl.org>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, xen-devel@lists.xenproject.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/xen: use schedule_timeout_interruptible()
Date: Fri, 29 May 2015 10:44:33 -0400 [thread overview]
Message-ID: <55687B51.6000907@oracle.com> (raw)
In-Reply-To: <1432907387-31523-1-git-send-email-hofrat@osadl.org>
On 05/29/2015 09:49 AM, Nicholas Mc Guire wrote:
> API consolidation with coccinelle found:
> ./arch/x86/xen/smp.c:499:2-18:
> consolidation with schedule_timeout_*() recommended
>
> This is a 1:1 conversion of the current calls to an available helper
> only - so only an API consolidation to improve readability.
>
> Patch was compile tested with x86_64_defconfig +
> CONFIG_HYPERVISOR_GUEST=y,CONFIG_PARAVIRT=y,CONFIG_XEN=y:
>
> Patch is against 4.1-rc5 (localversion-next is -next-20150529)
>
> Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Boris Ostrovsky < boris.ostrovsky@oracle.com>
> ---
> arch/x86/xen/smp.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
> index 8648438..6cbbfc8 100644
> --- a/arch/x86/xen/smp.c
> +++ b/arch/x86/xen/smp.c
> @@ -494,10 +494,8 @@ static int xen_cpu_disable(void)
>
> static void xen_cpu_die(unsigned int cpu)
> {
> - while (xen_pv_domain() && HYPERVISOR_vcpu_op(VCPUOP_is_up, cpu, NULL)) {
> - __set_current_state(TASK_UNINTERRUPTIBLE);
> - schedule_timeout(HZ/10);
> - }
> + while (xen_pv_domain() && HYPERVISOR_vcpu_op(VCPUOP_is_up, cpu, NULL))
> + schedule_timeout_uninterruptible(msecs_to_jiffies(100));
>
> if (common_cpu_die(cpu) == 0) {
> xen_smp_intr_free(cpu);
prev parent reply other threads:[~2015-05-29 14:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-29 13:49 [PATCH] x86/xen: use schedule_timeout_interruptible() Nicholas Mc Guire
2015-05-29 14:44 ` Boris Ostrovsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55687B51.6000907@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=hofrat@osadl.org \
--cc=hpa@zytor.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox