Skip to content

Commit

Permalink
Merge pull request #15 from sched-ext/scx-6.7.6-scx2
Browse files Browse the repository at this point in the history
v6.7.6-scx2
  • Loading branch information
htejun authored Feb 26, 2024
2 parents 6fb3d13 + 73acd11 commit f9bc69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
VERSION = 6
PATCHLEVEL = 7
SUBLEVEL = 6
EXTRAVERSION = -scx1
EXTRAVERSION = -scx2
NAME = Hurr durr I'ma ninja sloth

# *DOCUMENTATION*
Expand Down
3 changes: 2 additions & 1 deletion kernel/sched/ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -4057,7 +4057,8 @@ static int bpf_scx_init_member(const struct btf_type *t,
return -EINVAL;
return 1;
case offsetof(struct sched_ext_ops, timeout_ms):
if (*(u32 *)(udata + moff) > SCX_WATCHDOG_MAX_TIMEOUT)
if (msecs_to_jiffies(*(u32 *)(udata + moff)) >
SCX_WATCHDOG_MAX_TIMEOUT)
return -E2BIG;
ops->timeout_ms = *(u32 *)(udata + moff);
return 1;
Expand Down

0 comments on commit f9bc69a

Please sign in to comment.