Messages in this thread | | | Date | Fri, 3 Jan 2003 15:53:37 +0100 | Subject | Re: [STUPID] Best looking code to transfer to a t-shirt | From | uaca@alumni ... |
| |
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/
| |