Skip to content

Commit

Permalink
[fix] simplify percpu_static macros
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Nov 18, 2024
1 parent 274ec52 commit f6091f0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions modules/axtask/src/run_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ use crate::wait_queue::WaitQueueGuard;
use crate::{AxCpuMask, AxTaskRef, Scheduler, TaskInner, WaitQueue};

macro_rules! percpu_static {
($(
$(#[$comment:meta])*
#[cfg($($cfg:tt)*)]
$name:ident: $ty:ty = $init:expr
),* $(,)?) => {
$(
$(#[$comment])*
#[percpu::def_percpu]
#[cfg($($cfg)*)]
static $name: $ty = $init;
)*
};
($(
$(#[$comment:meta])*
$name:ident: $ty:ty = $init:expr
Expand Down

0 comments on commit f6091f0

Please sign in to comment.