Maxの日記: ckPatch(3)
日記 by
Max
例のnet/bluetooth/cmtpのcore.cでエラーを吐く件をしらべた。
current -> nice と参照しているところでダメになっている。
で、パッチを観察していたら、結局
[snip]
@@ -298,35 +372,27 @@ struct task_struct {
int lock_depth; /* Lock depth */
/*
- * offset 32 begins here on 32-bit platforms. We keep
- * all fields in a single cacheline that are needed for
- * the goodness() loop in schedule().
+ * offset 32 begins here on 32-bit platforms.
*/
- long counter;
- long nice;
+ unsigned int cpu;
+ int prio, static_prio;
[snip]
とかされていましたよ。 task_structはsched.hなんだけど
Preemptive Patchでここがごっそり置き換えられていると。
非常に萎えました。やはりこの辺を弄るのは怖いです。
ckPatch(3) More ログイン