Skip to content

Commit f79f4b7

Browse files
committed
inline(always) -> inline
1 parent 875ee38 commit f79f4b7

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/peripheral/cbp.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ const CBP_SW_SET_MASK: u32 = 0x1FF << CBP_SW_SET_POS;
3535

3636
impl RegisterBlock {
3737
/// I-cache invalidate all to PoU
38-
#[inline(always)]
38+
#[inline]
3939
pub fn iciallu(&self) {
4040
unsafe {
4141
self.iciallu.write(0);
4242
}
4343
}
4444

4545
/// I-cache invalidate by MVA to PoU
46-
#[inline(always)]
46+
#[inline]
4747
pub fn icimvau(&self, mva: u32) {
4848
unsafe {
4949
self.icimvau.write(mva);
5050
}
5151
}
5252

5353
/// D-cache invalidate by MVA to PoC
54-
#[inline(always)]
54+
#[inline]
5555
pub fn dcimvac(&self, mva: u32) {
5656
unsafe {
5757
self.dcimvac.write(mva);
@@ -61,7 +61,7 @@ impl RegisterBlock {
6161
/// D-cache invalidate by set-way
6262
///
6363
/// `set` is masked to be between 0 and 3, and `way` between 0 and 511.
64-
#[inline(always)]
64+
#[inline]
6565
pub fn dcisw(&self, set: u16, way: u16) {
6666
// The ARMv7-M Architecture Reference Manual, as of Revision E.b, says these set/way
6767
// operations have a register data format which depends on the implementation's
@@ -81,15 +81,15 @@ impl RegisterBlock {
8181
}
8282

8383
/// D-cache clean by MVA to PoU
84-
#[inline(always)]
84+
#[inline]
8585
pub fn dccmvau(&self, mva: u32) {
8686
unsafe {
8787
self.dccmvau.write(mva);
8888
}
8989
}
9090

9191
/// D-cache clean by MVA to PoC
92-
#[inline(always)]
92+
#[inline]
9393
pub fn dccmvac(&self, mva: u32) {
9494
unsafe {
9595
self.dccmvac.write(mva);
@@ -99,7 +99,7 @@ impl RegisterBlock {
9999
/// D-cache clean by set-way
100100
///
101101
/// `set` is masked to be between 0 and 3, and `way` between 0 and 511.
102-
#[inline(always)]
102+
#[inline]
103103
pub fn dccsw(&self, set: u16, way: u16) {
104104
// See comment for dcisw() about the format here
105105
unsafe {
@@ -111,7 +111,7 @@ impl RegisterBlock {
111111
}
112112

113113
/// D-cache clean and invalidate by MVA to PoC
114-
#[inline(always)]
114+
#[inline]
115115
pub fn dccimvac(&self, mva: u32) {
116116
unsafe {
117117
self.dccimvac.write(mva);
@@ -121,7 +121,7 @@ impl RegisterBlock {
121121
/// D-cache clean and invalidate by set-way
122122
///
123123
/// `set` is masked to be between 0 and 3, and `way` between 0 and 511.
124-
#[inline(always)]
124+
#[inline]
125125
pub fn dccisw(&self, set: u16, way: u16) {
126126
// See comment for dcisw() about the format here
127127
unsafe {
@@ -133,7 +133,7 @@ impl RegisterBlock {
133133
}
134134

135135
/// Branch predictor invalidate all
136-
#[inline(always)]
136+
#[inline]
137137
pub fn bpiall(&self) {
138138
unsafe {
139139
self.bpiall.write(0);

src/peripheral/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static mut CORE_PERIPHERALS: bool = false;
6969

7070
impl Peripherals {
7171
/// Returns all the core peripherals *once*
72-
#[inline(always)]
72+
#[inline]
7373
pub fn take() -> Option<Self> {
7474
interrupt::free(|_| {
7575
if unsafe { CORE_PERIPHERALS } {

0 commit comments

Comments
 (0)