Re: PROBLEM: Shutdown does not poweroff due to commit 2a2d31c8 "intel_idle: open broadcast clock event"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/1/24 Shaohua Li <shaohua.li@xxxxxxxxx>:
> I can't reproduce it here, but can you please try below patch:
>
> diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
> index 7acb32e..1fa091e 100644
> --- a/drivers/idle/intel_idle.c
> +++ b/drivers/idle/intel_idle.c
> @@ -263,7 +263,7 @@ static void __setup_broadcast_timer(void *arg)
>        clockevents_notify(reason, &cpu);
>  }
>
> -static int __cpuinit setup_broadcast_cpuhp_notify(struct notifier_block *n,
> +static int setup_broadcast_cpuhp_notify(struct notifier_block *n,
>                unsigned long action, void *hcpu)
>  {
>        int hotcpu = (unsigned long)hcpu;
> @@ -273,15 +273,11 @@ static int __cpuinit setup_broadcast_cpuhp_notify(struct notifier_block *n,
>                smp_call_function_single(hotcpu, __setup_broadcast_timer,
>                        (void *)true, 1);
>                break;
> -       case CPU_DOWN_PREPARE:
> -               smp_call_function_single(hotcpu, __setup_broadcast_timer,
> -                       (void *)false, 1);
> -               break;
>        }
>        return NOTIFY_OK;
>  }
>
> -static struct notifier_block __cpuinitdata setup_broadcast_notifier = {
> +static struct notifier_block setup_broadcast_notifier = {
>        .notifier_call = setup_broadcast_cpuhp_notify,
>  };
>

I tried your patch and it did fix the problem.

Ari
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm



[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux