[lkml]   [2006]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] genirq: ARM dyntick cleanup

On Mon, 3 Jul 2006, Andrew Morton wrote:
> void handle_dynamic_tick(struct irqaction *action)
> {
> }
> consumes one byte, doesn't it? That's not very far overboard ;)

Nope, it consumes - very fundamentally - about 64 bytes.

Even in the absense of alignment (which means that it generally takes up a
minimum of 16 bytes of real memory), it takes up what would tend to be a
much more critical resource: a cache line.

So an empty macro is a _lot_ more efficient than an empty function call.

For interrupt handlers, the L1 I$ miss rate is basically 100%. Even the L2
I$ miss rate is quite noticeable, _especially_ for things that are not
easy to prefetch (ie stuff that is out-of-line). Which means that it also
likely takes an inordinate amount of cycles, for doing zero work.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2009-11-18 23:46    [W:0.056 / U:1.196 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site