mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-28 21:50:23 +00:00
Merge pull request #434 from hodgesds/cpu-topo-cache-id
scx_utils: Add LLC id to CPU
This commit is contained in:
commit
47ee332196
@ -83,6 +83,7 @@ pub struct Cpu {
|
||||
min_freq: usize,
|
||||
max_freq: usize,
|
||||
trans_lat_ns: usize,
|
||||
llc_id: usize,
|
||||
}
|
||||
|
||||
impl Cpu {
|
||||
@ -105,6 +106,11 @@ impl Cpu {
|
||||
pub fn trans_lat_ns(&self) -> usize {
|
||||
self.trans_lat_ns
|
||||
}
|
||||
|
||||
/// Get the LLC id of the this Cpu
|
||||
pub fn llc_id(&self) -> usize {
|
||||
self.llc_id
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
@ -414,6 +420,7 @@ fn create_insert_cpu(cpu_id: usize, node: &mut Node, online_mask: &Cpumask) -> R
|
||||
min_freq: min_freq,
|
||||
max_freq: max_freq,
|
||||
trans_lat_ns: trans_lat_ns,
|
||||
llc_id: llc_id,
|
||||
},
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user