Changeset 4d0ade9 in rtems


Ignore:
Timestamp:
Jun 11, 2015, 4:41:54 AM (4 years ago)
Author:
Konstantin Belousov <kib@…>
Branches:
master
Children:
0163063
Parents:
51304dde
git-author:
Konstantin Belousov <kib@…> (06/11/15 04:41:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/12/17 05:04:10)
Message:

timecounter: Merge FreeBSD change r284256

Tweaks for r284178:

Do not include machine/atomic.h explicitely, the header is already included
by sys/systm.h.

Force inlining of tc_getgen() and tc_setgen(). The functions are used
more than once, which causes compilers with non-aggressive inlining
policies to generate calls.

Suggested by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Update #3175.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/kern_tc.c

    r51304dde r4d0ade9  
    6363#ifndef __rtems__
    6464#include <sys/vdso.h>
    65 #include <machine/atomic.h>
    6665#endif /* __rtems__ */
    6766#ifdef __rtems__
     
    279278}
    280279
    281 static u_int
     280static inline u_int
    282281tc_getgen(struct timehands *th)
    283282{
     
    298297}
    299298
    300 static void
     299static inline void
    301300tc_setgen(struct timehands *th, u_int newgen)
    302301{
Note: See TracChangeset for help on using the changeset viewer.