Messages in this thread | | | Subject | Re: [RFC] Making percpu module variables have their own memory. | From | Andi Kleen <> | Date | 12 Apr 2006 22:23:58 +0200 |
| |
Steven Rostedt <rostedt@goodmis.org> writes:
The basic optimization idea looks interesting. But your implementation is quite complicated.
The basic problem is that extern declarations and definitions are the same macro. If they weren't one could just use a different macro depending on if MODULE is defined or not and get rid of the type comparisons you do.
Since you already need to change a lot of the per CPU definitions how about you just define a separate macro for extern per cpu declarations? And then change the basic macro to do the right thing based on MODULE is set or not.
-Andi - 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/
| |