Re: [PATCH 1/2] Add thread_info_cache_init() to all archs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin Herrenschmidt
Date: Sunday, April 13, 2008 - 5:38 pm

> > +#ifndef thread_info_cache_init

I this case it's well defined: thread_info.h. Maybe I should add a
comment ?


Yup.


Will do.


In this case, there's only one call site and will only every be one, so
that shouldn't be a problem. I don't see init/main.c not including
sched.h


Well, I started doing it in all arch, and people around here told me
that was not a good idea , that it would be trouble if the prototype
ever had to change (adding an arg, etc... though very unlikely to happen
in that case, granted).


I can definitely do that. I have no problem either way. I can add to all
archs too, it's just that whatever way I choose, some people won't be
happy with it :-)

Anyway, I'll move the ifdeferry to init/main.c then.

Cheers,
Ben.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed Apr 9, 8:22 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Thu Apr 10, 2:46 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Sun Apr 13, 5:19 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Sun Apr 13, 5:38 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Sun Apr 13, 7:13 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Thu Apr 17, 8:58 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Thu Apr 17, 9:19 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Kyle McMartin, (Thu Apr 17, 9:21 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Michael Ellerman, (Thu Apr 17, 9:38 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Thu Apr 17, 11:44 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 10:56 am)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Wed May 21, 11:41 am)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Sam Ravnborg, (Wed May 21, 12:06 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 12:44 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 1:38 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Wed May 21, 1:52 pm)