Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1609751

Re: [v3 PATCH 2/4] powernv:smp: Add busy-wait loop as fall back for CPU-Hotplug

From Michael Ellerman <mpe@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: [v3 PATCH 2/4] powernv:smp: Add busy-wait loop as fall back for CPU-Hotplug
Date 2017-03-27 13:50 +0200
Message-ID <tpBjQ-7ro-19@gated-at.bofh.it> (permalink)
References <tnQ3F-4lf-37@gated-at.bofh.it> <tnQ3E-4lf-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


"Gautham R. Shenoy" <ego@linux.vnet.ibm.com> writes:

> diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platforms/powernv/idle.c
> index 419edff..f335e0f 100644
> --- a/arch/powerpc/platforms/powernv/idle.c
> +++ b/arch/powerpc/platforms/powernv/idle.c
> @@ -283,8 +283,16 @@ unsigned long pnv_cpu_offline(unsigned int cpu)
>  	} else if ((idle_states & OPAL_PM_SLEEP_ENABLED) ||
>  		   (idle_states & OPAL_PM_SLEEP_ENABLED_ER1)) {
>  		srr1 = power7_sleep();
> -	} else {
> +	} else if (idle_states & OPAL_PM_NAP_ENABLED) {
>  		srr1 = power7_nap(1);
> +	} else {
> +		/* This is the fallback method. We emulate snooze */
> +		while (!generic_check_cpu_restart(cpu)) {

Breaks the SMP=n build :/

arch/powerpc/platforms/powernv/idle.c:299:11: error: implicit declaration of function 'generic_check_cpu_restart' [-Werror=implicit-function-declaration]

cheers

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[v3 PATCH 2/4] powernv:smp: Add busy-wait loop as fall back for CPU-Hotplug "Gautham R. Shenoy" <ego@linux.vnet.ibm.com> - 2017-03-22 16:10 +0100
  Re: [v3 PATCH 2/4] powernv:smp: Add busy-wait loop as fall back for CPU-Hotplug Michael Ellerman <mpe@ellerman.id.au> - 2017-03-27 13:50 +0200
    Re: [v3 PATCH 2/4] powernv:smp: Add busy-wait loop as fall back for  CPU-Hotplug Gautham R Shenoy <ego@linux.vnet.ibm.com> - 2017-03-30 11:30 +0200

csiph-web