From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759426AbYG1RrG (ORCPT ); Mon, 28 Jul 2008 13:47:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752024AbYG1Rqz (ORCPT ); Mon, 28 Jul 2008 13:46:55 -0400 Received: from one.firstfloor.org ([213.235.205.2]:43109 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751718AbYG1Rqy (ORCPT ); Mon, 28 Jul 2008 13:46:54 -0400 Date: Mon, 28 Jul 2008 19:46:44 +0200 From: Andi Kleen To: Thomas Gleixner Cc: Linus Torvalds , Andrew Morton , LKML , Ingo Molnar , Dhaval Giani , Venkatesch Pallipadi , Len Brown , Andi Kleen Subject: Re: [PATCH] ACPI/CPUIDLE: prevent setting pm_idle to NULL Message-ID: <20080728174644.GC30344@one.firstfloor.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + /* > + * Fall back to the default idle loop, when pm_idle_save had > + * been initialized. > + */ > + if (pm_idle_save) { > + pm_idle = pm_idle_save; > + /* Relies on interrupts forcing exit from idle. */ > + synchronize_sched(); > + } I think it would be better to fall back to default_idle (which might need to be exported) when the old pointer is NULL. Now with your patch the cpuidle idle code would run with inconsistent state for some time, which is probably not good. -Andi