Changeset 68a0012 in rtems for bsps


Ignore:
Timestamp:
Nov 21, 2017, 12:19:05 PM (2 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
master
Children:
56a7540
Parents:
d952d73
git-author:
Daniel Hellstrom <daniel@…> (11/21/17 12:19:05)
git-committer:
Daniel Hellstrom <daniel@…> (09/20/18 10:48:32)
Message:

leon3, ckinit: avoid unsued code warnings when drvmgr is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/shared/btimer/tlib_ckinit.c

    rd952d73 r68a0012  
    6868 */
    6969
     70#ifndef RTEMS_SMP
    7071/* "simple timecounter" interface. Only for non-SMP. */
    7172static const struct ops ops_simple;
     73#else
    7274/* Hardware support up-counter using LEON3 %asr23. */
    7375static const struct ops ops_timetag;
     
    7678/* Separate GPTIMER subtimer as timecounter */
    7779static const struct ops ops_subtimer;
     80#endif
    7881
    7982struct clock_priv {
     
    175178}
    176179
     180#ifndef RTEMS_SMP
    177181/** Simple counter **/
    178182static uint32_t simple_tlib_tc_get(rtems_timecounter_simple *tc)
     
    257261  .shutdown_hardware  = NULL,
    258262};
     263
     264#else
    259265
    260266/** Subtimer as counter **/
     
    317323};
    318324
    319 #if defined(LEON3)
    320325/** DSU timetag as counter **/
    321326static uint32_t timetag_get_timecount(struct timecounter *tc)
     
    347352  .shutdown_hardware  = NULL,
    348353};
    349 #endif
    350 
    351 #if defined(LEON3)
     354
    352355/** IRQ(A)MP timestamp as counter **/
    353356static uint32_t irqamp_get_timecount(struct timecounter *tc)
Note: See TracChangeset for help on using the changeset viewer.