Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 19 Apr 2002 00:48:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 19 Apr 2002 00:48:30 -0400 Received: from leibniz.math.psu.edu ([146.186.130.2]:59286 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Fri, 19 Apr 2002 00:47:09 -0400 Date: Fri, 19 Apr 2002 00:47:08 -0400 (EDT) From: Alexander Viro To: Linus Torvalds cc: linux-kernel@vger.kernel.org Subject: [PATCH] (4/6) alpha fixes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org diff -urN C8-pptr/arch/alpha/kernel/process.c C8-cpu_idle/arch/alpha/kernel/process.c --- C8-pptr/arch/alpha/kernel/process.c Fri Mar 8 02:09:42 2002 +++ C8-cpu_idle/arch/alpha/kernel/process.c Thu Apr 18 23:26:58 2002 @@ -54,15 +54,21 @@ return 0; } +void default_idle(void) +{ + barrier(); +} + void cpu_idle(void) { while (1) { + void (*idle)(void) = default_idle; /* FIXME -- EV6 and LCA45 know how to power down the CPU. */ while (!need_resched()) - barrier(); + idle(); schedule(); } } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/