xen: credit2: make accessor helpers inline functions instead of macros
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 1 Mar 2017 16:56:34 +0000 (16:56 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 1 Mar 2017 16:56:34 +0000 (16:56 +0000)
commita1c329c2828b798958f04f5b67823842e49fd987
tree2c5630199611600ae2f655b84abcb98ca4328bac
parent4fa4f8a3cd5afd4980ad9517755d002dc316abdc
xen: credit2: make accessor helpers inline functions instead of macros

There isn't any particular reason for the accessor helpers
to be macro, so turn them into 'static inline'-s, which are
better.

Note that it is necessary to move the function definitions
below the structure declarations.

No functional change intended.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit2.c