-2.4.0-test8 with the patch:
timeout = 0 nsec: does not block. ~0.1200 msec on my laptop.
timeout = 10 nsec: blocks for 20msec
Due to laziness I have not timed 2.4.0-test8 without the patch.
--
Henrik Nordstrom
--- linux-2.4.0-test7-reiserfs-3.6.14-raw-hno/kernel/signal.c.orig Sat Sep 16
11
e fragment:
timeout = (timespec_to_jiffies(ts)
+ (ts.tv_sec || ts.tv_nsec));
Does anyone have any clue on why this +1 is there? I think this should
also go away to only read
timeout = timespec_to_jiffies(ts);
--
Henrik Nordstrom
--- linux-2
a timeout is selected, which
in the context is nothing.
--
Henrik Nordstrom
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/
now is
timeoutsleeping
0 0
1ns2 jiffies
1 jiffies 2 jiffies
2 jiffies 3 jiffies
3 jiffies 4 jiffies
...
If the "+1" is taken out then the timeout scale becomes the expected one, starting at
1 jiffie, not
2.
--
Henirk Nordstrom
Henrik Nordstro
-2.4.0-test8 with the patch:
timeout = 0 nsec: does not block. ~0.1200 msec on my laptop.
timeout = 10 nsec: blocks for 20msec
Due to laziness I have not timed 2.4.0-test8 without the patch.
--
Henrik Nordstrom
--- linux-2.4.0-test7-reiserfs-3.6.14-raw-hno/kernel/signal.c.orig Sat Sep 16
11
e fragment:
timeout = (timespec_to_jiffies()
+ (ts.tv_sec || ts.tv_nsec));
Does anyone have any clue on why this +1 is there? I think this should
also go away to only read
timeout = timespec_to_jiffies();
--
Henrik Nordstrom
--- linux-2.4.0-te
on such applications.
Pleae note that the first version of my patch was quite broken. A
corrected version was posted a few days later.
Thanks for your interest.
--
Henrik Nordstrom
James Antill wrote:
>
> Henrik Nordstrom <[EMAIL PROTECTED]> writes:
>
> > Hi.
> >
> >
ad: one
added comparisation for the codepath when a timeout is selected, which
in the context is nothing.
--
Henrik Nordstrom
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/
now is
timeoutsleeping
0 0
1ns2 jiffies
1 jiffies 2 jiffies
2 jiffies 3 jiffies
3 jiffies 4 jiffies
...
If the "+1" is taken out then the timeout scale becomes the expected one, starting at
1 jiffie, not
2.
--
Henirk Nordstrom
Henrik Nordstro
9 matches
Mail list logo