Messages in this thread | | | Date | Wed, 25 Mar 1998 16:39:19 +0100 (CET) | From | Andrea Arcangeli <> | Subject | Re: [2.1.90 patch] SMP sys_idle() user level hang |
| |
On Wed, 25 Mar 1998, Alexander Kjeldaas wrote:
>If you want to check whether the process is kernel or userland, it is >probably better to compare current->mm to &init_mm since kernel >threads don't have pid == 0.
The current->pid test should be enaugh since sys_idle should be not useful for them (it goes the process to sleep forever). If I am wrong we must change the 2.1.90 not SMP and the two SMP/UP 2.0.33 version too.
Andrea[s] Arcangeli
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |