Changeset 0324410 in rtems


Ignore:
Timestamp:
Feb 26, 2015, 9:26:49 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c5436ff4
Parents:
396ce49
git-author:
Sebastian Huber <sebastian.huber@…> (02/26/15 09:26:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/04/15 06:46:16)
Message:

smptests: Do not use Giant directly

This ensures that thread dispatching is disabled. A Giant
acquire/release pair must take place in the same processor.

Location:
testsuites/smptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpcache01/init.c

    r396ce49 r0324410  
    9696{
    9797  if ( rtems_get_current_processor() == 0)
    98     _Giant_Acquire();
     98    _Thread_Disable_dispatch();
    9999
    100100  _SMP_barrier_Wait( &ctx.barrier, bs, rtems_get_processor_count() );
     
    103103
    104104  if ( rtems_get_current_processor() == 0)
    105     _Giant_Release();
     105    _Thread_Enable_dispatch();
    106106}
    107107
     
    146146
    147147  if ( rtems_get_current_processor() == 0)
    148     _Giant_Acquire();
     148    _Thread_Disable_dispatch();
    149149
    150150  _SMP_barrier_Wait( &ctx.barrier, bs, rtems_get_processor_count() );
     
    158158
    159159  if ( rtems_get_current_processor() == 0)
    160     _Giant_Release();
     160    _Thread_Enable_dispatch();
    161161}
    162162
  • testsuites/smptests/smpfatal03/init.c

    r396ce49 r0324410  
    4343
    4444  for (i = 0; i < 13; ++i) {
    45     _Giant_Acquire();
     45    _Thread_Disable_dispatch();
    4646  }
    4747
     
    6363  _SMP_barrier_Wait(&giant_barrier, &state, CPU_COUNT);
    6464
    65   _Giant_Acquire();
     65  _Thread_Disable_dispatch();
    6666}
    6767
Note: See TracChangeset for help on using the changeset viewer.