Re: [PATCH] Rename "swapper" to "idle"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-04-20 at 16:15 -0700, Hua Zhong wrote:
> This patch renames the "swapper" process (pid 0) to a more appropriate name "idle". The name "swapper" is not obviously meaningful and confuses a lot of people (e.g., when seen in oops report).
> 
> Patch not tested, but I guess it works. :-)

Usually a patch not tested will never be accepted no matter how trivial
it is, unless you had to modify a driver to match a new syntax or
something and you don't have the device.  Did you at least compile it?

> 
> Signed-off-by: Hua Zhong <[email protected]>
> 
> diff --git a/include/linux/init_task.h b/include/linux/init_task.h
> index 41ecbb8..5e3ca4f 100644
> --- a/include/linux/init_task.h
> +++ b/include/linux/init_task.h
> @@ -108,7 +108,7 @@ #define INIT_TASK(tsk)      \
>         .cap_permitted  = CAP_FULL_SET,                                 \
>         .keep_capabilities = 0,                                         \
>         .user           = INIT_USER,                                    \
> -       .comm           = "swapper",                                    \
> +       .comm           = "idle",                                       \
>         .thread         = INIT_THREAD,                                  \
>         .fs             = &init_fs,                                     \
>         .files          = &init_files,                                  \
> -

Yes, swapper is because of historical reasons.  In most text books for
Unix, the initial process on boot up is called "swapper".  Probably
because those early Unix systems had this process handle the swapping
(as kswapd does today).

By doing this, it will probably make Linux out of sync with all the text
books on Unix, so it really is Linus' call.

-- Steve


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux