.. | .. |
---|
8 | 8 | * Copyright (C) 2011 Google, Inc. |
---|
9 | 9 | */ |
---|
10 | 10 | |
---|
11 | | -#include <linux/module.h> |
---|
12 | 11 | #include <linux/freezer.h> |
---|
13 | 12 | #include <linux/list.h> |
---|
14 | 13 | #include <linux/slab.h> |
---|
15 | 14 | #include <linux/swap.h> |
---|
16 | | -#include <uapi/linux/sched/types.h> |
---|
| 15 | +#include <linux/sched/signal.h> |
---|
17 | 16 | |
---|
18 | 17 | #include "deferred-free-helper.h" |
---|
19 | 18 | |
---|
.. | .. |
---|
122 | 121 | |
---|
123 | 122 | static int deferred_freelist_init(void) |
---|
124 | 123 | { |
---|
125 | | - struct sched_param param = { .sched_priority = 0 }; |
---|
126 | | - |
---|
127 | 124 | list_nr_pages = 0; |
---|
128 | 125 | |
---|
129 | 126 | init_waitqueue_head(&freelist_waitqueue); |
---|
.. | .. |
---|
133 | 130 | pr_err("Creating thread for deferred free failed\n"); |
---|
134 | 131 | return -1; |
---|
135 | 132 | } |
---|
136 | | - sched_setscheduler(freelist_task, SCHED_IDLE, ¶m); |
---|
| 133 | + sched_set_normal(freelist_task, 19); |
---|
137 | 134 | |
---|
138 | 135 | return register_shrinker(&freelist_shrinker); |
---|
139 | 136 | } |
---|
140 | 137 | module_init(deferred_freelist_init); |
---|
141 | | -MODULE_LICENSE("GPL"); |
---|
| 138 | +MODULE_LICENSE("GPL v2"); |
---|
142 | 139 | |
---|