Changeset 65f868c in rtems for bsps/powerpc/qoriq


Ignore:
Timestamp:
May 23, 2018, 12:17:25 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
762fa62
Parents:
4c7b18e3
git-author:
Sebastian Huber <sebastian.huber@…> (05/23/18 12:17:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/15/18 11:02:44)
Message:

Add _CPU_Counter_frequency()

Add rtems_counter_frequency() API function. Use it to initialize the
counter value converter via the new system initialization step
(RTEMS_SYSINIT_CPU_COUNTER). This decouples the counter implementation
and the counter converter. It avoids an unnecessary pull in of the
64-bit integer division from libgcc.

Update #3456.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/qoriq/start/bspstart.c

    r4c7b18e3 r65f868c  
    5555uint32_t qoriq_clock_frequency;
    5656
     57uint32_t _CPU_Counter_frequency(void)
     58{
     59#ifdef __PPC_CPU_E6500__
     60  return qoriq_clock_frequency;
     61#else
     62  return bsp_time_base_frequency;
     63#endif
     64}
     65
    5766static void initialize_frequency_parameters(void)
    5867{
     
    8392    qoriq_clock_frequency = fdt32_to_cpu(*val_fdt);
    8493  #endif
    85   rtems_counter_initialize_converter(fdt32_to_cpu(*val_fdt));
    8694}
    8795
Note: See TracChangeset for help on using the changeset viewer.