lkml.org 
[lkml]   [2002]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: It hurts when I shoot myself in the foot
Date
From
> Couldn't that be solved in one of the following ways?
>
> 1) Disable pre-emption while reading TSC and CPU nr.
> 2) Use affinity for processes pre-empted in kernel mode.
> 3) Disable pre-emption for SMP systems.

You can solve it by disabling pre-emption (and given its questionable
value doing so permanently might not be a bad idea). However if you simply
disable pre-emption during udelay() calls then you've just screwed yourself
by removing 99% of the use pre-emption had.

Given all the pain its probably better to not use the TSC
-
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/

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