Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scx_bpfland: primary domain #491

Merged
merged 3 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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