Re: [PATCH] local_irq_disable removal

Sven-Thorsten Dietrich
2005-06-11T20:04:51Z

> >
> Well, isn't enough to see that the code contains more instructions and
> looks somewhat more complicated?
>

And - another thing:

Not all instructions take the same amount of time to execute.

Think about the cli operation. This can take real time on highly
pipelined processors, when compared to a simple increment by one
operation.

So the more complex-looking code, might make things faster.

I'm going to say it one last time.

Do the analysis scientifically, and use numbers to get your answers.

This stuff is profound.

Think it through, and when you find a real problem, then we can take a
look together, and see if it requires a bug fix.

And consider this -

There are robots walking around today, that use this concept in Linux
2.4, and they can help you carry a 20 foot long plank across rugged
terrain. In addition, they will stand it up against a wall for you...

So be careful when you say it can't be done in 2.6.

Sven