History

modules: only use mod->param_lock if CONFIG_MODULES

Stephen Rothwell committed 11 years ago

Commit 20bdc2c1 parent cf2fde71 file · +4 −0Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/params.c+4−0
@@ -30,7 +30,11 @@ · 29 unmodified lines
30static DEFINE_MUTEX(param_lock);30static DEFINE_MUTEX(param_lock);
31 31
32/* Use the module's mutex, or if built-in use the built-in mutex */32/* Use the module's mutex, or if built-in use the built-in mutex */
33#ifdef CONFIG_MODULES
33#define KPARAM_MUTEX(mod) ((mod) ? &(mod)->param_lock : &param_lock)34#define KPARAM_MUTEX(mod) ((mod) ? &(mod)->param_lock : &param_lock)
35#else
36#define KPARAM_MUTEX(mod) (&param_lock)
37#endif
34 38
35static inline void check_kparam_locked(struct module *mod)39static inline void check_kparam_locked(struct module *mod)
36{40{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t