diff options
| author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2011-10-12 19:17:54 -0400 |
|---|---|---|
| committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2011-10-25 14:55:15 -0400 |
| commit | 97ce2c88f9ad42e3c60a9beb9fca87abf3639faa (patch) | |
| tree | c25d41a8754b6e11dbf54ba69ebbee11fdffd07e /kernel | |
| parent | e71a5be15e47a73a2964712967fe93ee8ccf551b (diff) | |
jump-label: initialize jump-label subsystem much earlier
Initialize jump_labels much, much earlier, so they're available for use
during system setup.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/jump_label.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/jump_label.c b/kernel/jump_label.c index ff2028f35aa8..bbdfe2a462a0 100644 --- a/kernel/jump_label.c +++ b/kernel/jump_label.c | |||
| @@ -133,7 +133,7 @@ static void __jump_label_update(struct jump_label_key *key, | |||
| 133 | } | 133 | } |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | static __init int jump_label_init(void) | 136 | void __init jump_label_init(void) |
| 137 | { | 137 | { |
| 138 | struct jump_entry *iter_start = __start___jump_table; | 138 | struct jump_entry *iter_start = __start___jump_table; |
| 139 | struct jump_entry *iter_stop = __stop___jump_table; | 139 | struct jump_entry *iter_stop = __stop___jump_table; |
| @@ -159,10 +159,7 @@ static __init int jump_label_init(void) | |||
| 159 | #endif | 159 | #endif |
| 160 | } | 160 | } |
| 161 | jump_label_unlock(); | 161 | jump_label_unlock(); |
| 162 | |||
| 163 | return 0; | ||
| 164 | } | 162 | } |
| 165 | early_initcall(jump_label_init); | ||
| 166 | 163 | ||
| 167 | #ifdef CONFIG_MODULES | 164 | #ifdef CONFIG_MODULES |
| 168 | 165 | ||
