Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 3 Jan 2003 09:45:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 3 Jan 2003 09:45:11 -0500 Received: from pusa.informat.uv.es ([147.156.10.98]:58580 "EHLO pusa.informat.uv.es") by vger.kernel.org with ESMTP id ; Fri, 3 Jan 2003 09:45:10 -0500 Date: Fri, 3 Jan 2003 15:53:37 +0100 To: linux-kernel@vger.kernel.org Subject: Re: [STUPID] Best looking code to transfer to a t-shirt Message-ID: <20030103145337.GA1986@pusa.informat.uv.es> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.28i From: uaca@alumni.uv.es Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1123 Lines: 41 Hi Maciej On Fri, Jan 03, 2003 at 02:25:09PM +0100, Maciej Soltysiak wrote: > Hi, > [...] > How about we have a poll of the most frightening pieces of the kernel ? > What are your ideas? Do you like this one? /* * We use this if we don't have any better * idle routine.. */ void default_idle(void) { if (current_cpu_data.hlt_works_ok && !hlt_counter) { __cli(); if (!current->need_resched) safe_halt(); else __sti(); } } Ulisses Debian GNU/Linux: a dream come true ----------------------------------------------------------------------------- "Computers are useless. They can only give answers." Pablo Picasso ---> Visita http://www.valux.org/ para saber acerca de la <--- ---> Asociaci?n Valenciana de Usuarios de Linux <--- - 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/