Home | History | Annotate | Download | only in doc
      1 Testcase 02
      2 -----------
      3 
      4 This test checks that a process migrates when the CPU it is running on
      5 is offlined.
      6 
      7 
      8 Algorithm
      9 =========
     10 Given a CPU to test that exists
     11 
     12 Make sure the cpu is online
     13 
     14 Start a process that just uses processor cycles
     15 
     16 Loop until done:
     17   Move the process to the CPU we will be offlining
     18 
     19   Offline the CPU
     20 
     21   Determine which CPU the process migrated to
     22 
     23   Verify that it is still running
     24 
     25   Verify that it is not running on the original CPU
     26 
     27   Turn the CPU back online
     28 
     29 
     30 
     31 When exiting:
     32   Kill the spin loop process
     33 
     34