Skip to content

Commit 94bedda

Browse files
author
Peter Zijlstra
committed
sched,watchdog: Convert to sched_set_fifo()
Because SCHED_FIFO is a broken scheduler model (see previous patches) take away the priority field, the kernel can't possibly make an informed decision. Effectively changes prio from 99 to 50. Cc: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]>
1 parent 28d2f20 commit 94bedda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/watchdog/watchdog_dev.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,14 +1144,13 @@ void watchdog_dev_unregister(struct watchdog_device *wdd)
11441144
int __init watchdog_dev_init(void)
11451145
{
11461146
int err;
1147-
struct sched_param param = {.sched_priority = MAX_RT_PRIO - 1,};
11481147

11491148
watchdog_kworker = kthread_create_worker(0, "watchdogd");
11501149
if (IS_ERR(watchdog_kworker)) {
11511150
pr_err("Failed to create watchdog kworker\n");
11521151
return PTR_ERR(watchdog_kworker);
11531152
}
1154-
sched_setscheduler(watchdog_kworker->task, SCHED_FIFO, &param);
1153+
sched_set_fifo(watchdog_kworker->task);
11551154

11561155
err = class_register(&watchdog_class);
11571156
if (err < 0) {

0 commit comments

Comments
 (0)