Changeset 0a75a4aa in rtems for testsuites


Ignore:
Timestamp:
Nov 26, 2018, 1:04:59 PM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
c1864a0a
Parents:
6378978
git-author:
Sebastian Huber <sebastian.huber@…> (11/26/18 13:04:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/26/18 13:09:43)
Message:

Remove rtems_cache_*_processor_set() functions

The following rtems_cache_*_processor_set() cache manager API functions
are exotic, complex, very hard to use correctly, not used in the RTEMS
code base, and apparently unused by applications.

Close #3622.

File:
1 edited

Legend:

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

    r6378978 r0a75a4aa  
    2424const char rtems_test_name[] = "SMPCACHE 1";
    2525
    26 CPU_STRUCTURE_ALIGNMENT static int data_to_flush[1024];
    27 
    2826#define CPU_COUNT 32
    2927
     
    5553typedef void ( *test_case )(
    5654  size_t set_size,
    57   const cpu_set_t *cpu_set,
    58   SMP_barrier_State *bs
     55  const cpu_set_t *cpu_set
    5956);
    6057
    61 static void test_cache_flush_multiple_data_lines(
    62   size_t set_size,
    63   const cpu_set_t *cpu_set,
    64   SMP_barrier_State *bs
    65 )
    66 {
    67   rtems_cache_flush_multiple_data_lines_processor_set( &data_to_flush,
    68       sizeof(data_to_flush), set_size, cpu_set );
    69 }
    70 
    71 static void test_cache_invalidate_multiple_data_lines(
    72   size_t set_size,
    73   const cpu_set_t *cpu_set,
    74   SMP_barrier_State *bs
    75 )
    76 {
    77   rtems_cache_invalidate_multiple_data_lines_processor_set( &data_to_flush,
    78       sizeof(data_to_flush), set_size, cpu_set );
    79 }
    80 
    81 static void test_cache_flush_entire_data(
    82   size_t set_size,
    83   const cpu_set_t *cpu_set,
    84   SMP_barrier_State *bs
    85 )
    86 {
    87   rtems_cache_flush_entire_data_processor_set( set_size, cpu_set );
    88 }
    89 
    9058static void test_cache_invalidate_entire_instruction(
    9159  size_t set_size,
    92   const cpu_set_t *cpu_set,
    93   SMP_barrier_State *bs
     60  const cpu_set_t *cpu_set
    9461)
    9562{
     
    9966static void test_cache_invalidate_multiple_instruction_lines(
    10067  size_t set_size,
    101   const cpu_set_t *cpu_set,
    102   SMP_barrier_State *bs
     68  const cpu_set_t *cpu_set
    10369)
    10470{
     
    12793static void broadcast_test_body(
    12894  size_t set_size,
    129   const cpu_set_t *cpu_set,
    130   SMP_barrier_State *bs
     95  const cpu_set_t *cpu_set
    13196)
    13297{
     
    142107
    143108static test_case test_cases[] = {
    144   test_cache_flush_multiple_data_lines,
    145   test_cache_invalidate_multiple_data_lines,
    146   test_cache_flush_entire_data,
    147109  test_cache_invalidate_entire_instruction,
    148110  test_cache_invalidate_multiple_instruction_lines,
     
    159121  for (i = 0; i < RTEMS_ARRAY_SIZE( test_cases ); ++i) {
    160122    barrier( bs );
    161     ( *test_cases[ i ] )( set_size, cpu_set, bs );
     123    ( *test_cases[ i ] )( set_size, cpu_set );
    162124    barrier( bs );
    163125  }
     
    178140    _ISR_Local_disable( isr_level );
    179141    barrier( bs );
    180     ( *test_cases[ i ] )( set_size, cpu_set, bs );
     142    ( *test_cases[ i ] )( set_size, cpu_set );
    181143    _ISR_Local_enable( isr_level );
    182144    barrier( bs );
     
    198160    cpu_self = _Thread_Dispatch_disable();
    199161    barrier( bs );
    200     ( *test_cases[ i ] )( set_size, cpu_set, bs );
     162    ( *test_cases[ i ] )( set_size, cpu_set );
    201163    barrier( bs );
    202164    _Thread_Dispatch_enable( cpu_self );
Note: See TracChangeset for help on using the changeset viewer.