mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
[PATCH] severing module.h->sched.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
2b5f6dcce5
commit
f6a570333e
16 changed files with 29 additions and 14 deletions
|
@ -6,7 +6,6 @@
|
|||
* Rewritten by Richard Henderson <rth@tamu.edu> Dec 1996
|
||||
* Rewritten again by Rusty Russell, 2002
|
||||
*/
|
||||
#include <linux/sched.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/stat.h>
|
||||
|
@ -411,17 +410,7 @@ static inline int try_module_get(struct module *module)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static inline void module_put(struct module *module)
|
||||
{
|
||||
if (module) {
|
||||
unsigned int cpu = get_cpu();
|
||||
local_dec(&module->ref[cpu].count);
|
||||
/* Maybe they're waiting for us to drop reference? */
|
||||
if (unlikely(!module_is_live(module)))
|
||||
wake_up_process(module->waiter);
|
||||
put_cpu();
|
||||
}
|
||||
}
|
||||
extern void module_put(struct module *module);
|
||||
|
||||
#else /*!CONFIG_MODULE_UNLOAD*/
|
||||
static inline int try_module_get(struct module *module)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue