lkml.org 
[lkml]   [1999]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: schedule() "spaghetti" in 2.3.2 ..
Date
In muc.lists.linux-kernel, you wrote:
>
>Hi guys,
>
>what kind of "spaghetti" is schedule() in 2.3.2 ?! :-)
>And the comment at function head says that is a simple algo.
>Probably there's a better way to code it without performance loosing
>(if anyone won't do it, I'll try).

If you read it closely it isn't really spaghetti code, just a fancy
way to move blocks out of line (in essence similar to the code snippets
used in WEB and similar pre processors). All out of line blocks either
jump back directly or return (with the only exception of repeat_schedule),
not too much spaghetti if you know the conventions.

If gcc had a way to specify "move this block out of line" it could be writen
in a more conventional way. ATM it hasn't. Any "fixes" for this style IMHO
have to start with gcc.


-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.120 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site