Skip to content

Commit

Permalink
Merge pull request #491 from sched-ext/bpfland-primary-domain
Browse files Browse the repository at this point in the history
scx_bpfland: primary domain
  • Loading branch information
arighi authored Aug 14, 2024
2 parents 9e7d767 + f9a9944 commit d2ef2fc
Show file tree
Hide file tree
Showing 7 changed files with 276 additions and 72 deletions.
2 changes: 1 addition & 1 deletion scheds/rust/scx_bpfland/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "scx_bpfland"
version = "1.0.2"
authors = ["Andrea Righi <righi.andrea@gmail.com>", "Canonical"]
authors = ["Andrea Righi <andrea[email protected]>"]
edition = "2021"
description = "A vruntime-based sched_ext scheduler that prioritizes interactive workloads. https://github.com/sched-ext/scx/tree/main"
license = "GPL-2.0-only"
Expand Down
2 changes: 1 addition & 1 deletion scheds/rust/scx_bpfland/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Andrea Righi <righi.andrea@gmail.com>
// Copyright (c) Andrea Righi <andrea[email protected]>
//
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2.
Expand Down
12 changes: 8 additions & 4 deletions scheds/rust/scx_bpfland/src/bpf/intf.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2024 Andrea Righi <righi.andrea@gmail.com>
* Copyright (c) 2024 Andrea Righi <andrea[email protected]>
*
* This software may be used and distributed according to the terms of the GNU
* General Public License version 2.
Expand All @@ -15,9 +15,9 @@
#define CLAMP(val, lo, hi) MIN(MAX(val, lo), hi)

enum consts {
NSEC_PER_USEC = 1000ULL,
NSEC_PER_MSEC = (1000ULL * NSEC_PER_USEC),
NSEC_PER_SEC = (1000ULL * NSEC_PER_MSEC),
NSEC_PER_USEC = 1000ULL,
NSEC_PER_MSEC = (1000ULL * NSEC_PER_USEC),
NSEC_PER_SEC = (1000ULL * NSEC_PER_MSEC),
};

#ifndef __VMLINUX_H__
Expand All @@ -34,4 +34,8 @@ typedef signed long s64;
typedef int pid_t;
#endif /* __VMLINUX_H__ */

struct cpu_arg {
s32 cpu_id;
};

#endif /* __INTF_H */
Loading

0 comments on commit d2ef2fc

Please sign in to comment.