# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.425 -> 1.426 # kernel/sched.c 1.51 -> 1.52 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/02/27 jejb@malley.hansenpartnership.com 1.426 # Fix new SMP migration thread code (introduced in change set 1.373) # # - make migration_mask a logical bitmap with correct conversions. # -------------------------------------------- # diff -Nru a/kernel/sched.c b/kernel/sched.c --- a/kernel/sched.c Wed Feb 27 15:04:46 2002 +++ b/kernel/sched.c Wed Feb 27 15:04:46 2002 @@ -1555,7 +1555,8 @@ down(&req.sem); } -static volatile unsigned long migration_mask; +/* NOTE: migration_mask is a bitmap of logical CPUs */ +static volatile unsigned long migration_mask = 0; static int migration_thread(void * unused) { @@ -1585,7 +1586,8 @@ for (;;) { preempt_disable(); - if (test_and_clear_bit(smp_processor_id(), &migration_mask)) + if (test_and_clear_bit(cpu_number_map(smp_processor_id()), + &migration_mask)) current->cpus_allowed = 1 << smp_processor_id(); if (test_thread_flag(TIF_NEED_RESCHED)) schedule(); @@ -1656,7 +1658,7 @@ migration_mask = (1 << smp_num_cpus) - 1; for (cpu = 0; cpu < smp_num_cpus; cpu++) - while (!cpu_rq(cpu)->migration_thread) + while (!cpu_rq(cpu_logical_map(cpu))->migration_thread) schedule_timeout(2); if (migration_mask) BUG(); This BitKeeper patch contains the following changesets: + ## Wrapped with gzip_uu ## begin 664 bkpatch1387 M'XL(`(1+?3P``[55VX[;-A!]%K]BB@"%E<0R24F6[<+!-INT#=(DQB;[;-#2 MV%)6(A62MFO`'Y^1O,E>DF+;H)4(4Y?A.3-G#N5'<.G0SH*/^''%'L$?QOE9 MT*BZQD-4U9'SB'2)46X:>GUA#+T>-=K+4;=B]/SU:&<.:H-V**.44L%8_,YG)=*;_`]>IC/F3=VI^K"G2E?UD9' MWBKM&O2J8SY^#3U*SB6=JF/5 M#J.!-AK#;T!D)M)DS"=''O-LREZ`B!(Y!BY'-&0&(IFEXQG/AIQ^.9PP3\H0 MDD/=*NLU%5I6;9UG+,/]F`4U%5?G*:/"E155` M;@J$0:6]-<4VQP(J#7E/`H[$I29D<4@@-(;0J"N\@5@VREV!@MILJES5L*I\ MHUK85[XD6&LQ]S3KKIL4[2+V&E*1"+:X:1X;_LN#,:XX>_:`2E=H-=8CEY=8 M1/EMJ:;Q])AD,I;'=+62LR66$XYIVV5J3HW/&+JMB$)X0 M#JY;1:%OD9"\@37MB6U+FZ"WN2,>=J6FN$;;:51M-NE`O-_>QYL!_Z8@GU\23CC@( MJC4,/#J_)-66O6I+(AQ0_4N];59H:74[^+8=X5-:'`1P.GZ^2Q:&Q#1.ISW3 M:0Z"?=GE./BI@[:?>H;K@GH*N@_#X;,;H--W+;SY-R&Y\RNW;>9K*5?K9)6P )SZ-TOJZW!@`` ` end