diff options
-rw-r--r-- | arch/alpha/kernel/pci_iommu.c | 15 | ||||
-rw-r--r-- | crypto/chainiv.c | 4 | ||||
-rw-r--r-- | crypto/eseqiv.c | 2 | ||||
-rw-r--r-- | include/crypto/internal/skcipher.h | 2 | ||||
-rw-r--r-- | kernel/exit.c | 2 | ||||
-rw-r--r-- | kernel/sched.c | 18 |
6 files changed, 17 insertions, 26 deletions
diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c index be6fa105cd34..e07a23fc5b74 100644 --- a/arch/alpha/kernel/pci_iommu.c +++ b/arch/alpha/kernel/pci_iommu.c | |||
@@ -144,15 +144,14 @@ iommu_arena_find_pages(struct device *dev, struct pci_iommu_arena *arena, | |||
144 | unsigned long base; | 144 | unsigned long base; |
145 | unsigned long boundary_size; | 145 | unsigned long boundary_size; |
146 | 146 | ||
147 | BUG_ON(arena->dma_base & ~PAGE_MASK); | ||
148 | base = arena->dma_base >> PAGE_SHIFT; | 147 | base = arena->dma_base >> PAGE_SHIFT; |
149 | if (dev) | 148 | if (dev) { |
150 | boundary_size = ALIGN(dma_get_max_seg_size(dev) + 1, PAGE_SIZE) | 149 | boundary_size = dma_get_seg_boundary(dev) + 1; |
151 | >> PAGE_SHIFT; | 150 | BUG_ON(!is_power_of_2(boundary_size)); |
152 | else | 151 | boundary_size >>= PAGE_SHIFT; |
153 | boundary_size = ALIGN(1UL << 32, PAGE_SIZE) >> PAGE_SHIFT; | 152 | } else { |
154 | 153 | boundary_size = 1UL << (32 - PAGE_SHIFT); | |
155 | BUG_ON(!is_power_of_2(boundary_size)); | 154 | } |
156 | 155 | ||
157 | /* Search forward for the first mask-aligned sequence of N free ptes */ | 156 | /* Search forward for the first mask-aligned sequence of N free ptes */ |
158 | ptes = arena->ptes; | 157 | ptes = arena->ptes; |
diff --git a/crypto/chainiv.c b/crypto/chainiv.c index 0a7cac6e9089..6da3f577e4db 100644 --- a/crypto/chainiv.c +++ b/crypto/chainiv.c | |||
@@ -318,10 +318,8 @@ int __init chainiv_module_init(void) | |||
318 | { | 318 | { |
319 | return crypto_register_template(&chainiv_tmpl); | 319 | return crypto_register_template(&chainiv_tmpl); |
320 | } | 320 | } |
321 | EXPORT_SYMBOL_GPL(chainiv_module_init); | ||
322 | 321 | ||
323 | void __exit chainiv_module_exit(void) | 322 | void chainiv_module_exit(void) |
324 | { | 323 | { |
325 | crypto_unregister_template(&chainiv_tmpl); | 324 | crypto_unregister_template(&chainiv_tmpl); |
326 | } | 325 | } |
327 | EXPORT_SYMBOL_GPL(chainiv_module_exit); | ||
diff --git a/crypto/eseqiv.c b/crypto/eseqiv.c index 6f2cd063b6fe..b14f14e314b6 100644 --- a/crypto/eseqiv.c +++ b/crypto/eseqiv.c | |||
@@ -251,10 +251,8 @@ int __init eseqiv_module_init(void) | |||
251 | { | 251 | { |
252 | return crypto_register_template(&eseqiv_tmpl); | 252 | return crypto_register_template(&eseqiv_tmpl); |
253 | } | 253 | } |
254 | EXPORT_SYMBOL_GPL(eseqiv_module_init); | ||
255 | 254 | ||
256 | void __exit eseqiv_module_exit(void) | 255 | void __exit eseqiv_module_exit(void) |
257 | { | 256 | { |
258 | crypto_unregister_template(&eseqiv_tmpl); | 257 | crypto_unregister_template(&eseqiv_tmpl); |
259 | } | 258 | } |
260 | EXPORT_SYMBOL_GPL(eseqiv_module_exit); | ||
diff --git a/include/crypto/internal/skcipher.h b/include/crypto/internal/skcipher.h index a8f12644a13c..ccc32bad9a89 100644 --- a/include/crypto/internal/skcipher.h +++ b/include/crypto/internal/skcipher.h | |||
@@ -68,7 +68,7 @@ void skcipher_geniv_exit(struct crypto_tfm *tfm); | |||
68 | int __init eseqiv_module_init(void); | 68 | int __init eseqiv_module_init(void); |
69 | void __exit eseqiv_module_exit(void); | 69 | void __exit eseqiv_module_exit(void); |
70 | int __init chainiv_module_init(void); | 70 | int __init chainiv_module_init(void); |
71 | void __exit chainiv_module_exit(void); | 71 | void chainiv_module_exit(void); |
72 | 72 | ||
73 | static inline struct crypto_ablkcipher *skcipher_geniv_cipher( | 73 | static inline struct crypto_ablkcipher *skcipher_geniv_cipher( |
74 | struct crypto_ablkcipher *geniv) | 74 | struct crypto_ablkcipher *geniv) |
diff --git a/kernel/exit.c b/kernel/exit.c index cd20bf07e9e3..53872bf993fa 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -1378,7 +1378,7 @@ unlock_sig: | |||
1378 | if (!retval && infop) | 1378 | if (!retval && infop) |
1379 | retval = put_user(0, &infop->si_errno); | 1379 | retval = put_user(0, &infop->si_errno); |
1380 | if (!retval && infop) | 1380 | if (!retval && infop) |
1381 | retval = put_user(why, &infop->si_code); | 1381 | retval = put_user((short)why, &infop->si_code); |
1382 | if (!retval && infop) | 1382 | if (!retval && infop) |
1383 | retval = put_user(exit_code, &infop->si_status); | 1383 | retval = put_user(exit_code, &infop->si_status); |
1384 | if (!retval && infop) | 1384 | if (!retval && infop) |
diff --git a/kernel/sched.c b/kernel/sched.c index 52b98675acb2..b02e4fc25645 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -5813,6 +5813,13 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu) | |||
5813 | /* Must be high prio: stop_machine expects to yield to it. */ | 5813 | /* Must be high prio: stop_machine expects to yield to it. */ |
5814 | rq = task_rq_lock(p, &flags); | 5814 | rq = task_rq_lock(p, &flags); |
5815 | __setscheduler(rq, p, SCHED_FIFO, MAX_RT_PRIO-1); | 5815 | __setscheduler(rq, p, SCHED_FIFO, MAX_RT_PRIO-1); |
5816 | |||
5817 | /* Update our root-domain */ | ||
5818 | if (rq->rd) { | ||
5819 | BUG_ON(!cpu_isset(cpu, rq->rd->span)); | ||
5820 | cpu_set(cpu, rq->rd->online); | ||
5821 | } | ||
5822 | |||
5816 | task_rq_unlock(rq, &flags); | 5823 | task_rq_unlock(rq, &flags); |
5817 | cpu_rq(cpu)->migration_thread = p; | 5824 | cpu_rq(cpu)->migration_thread = p; |
5818 | break; | 5825 | break; |
@@ -5821,15 +5828,6 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu) | |||
5821 | case CPU_ONLINE_FROZEN: | 5828 | case CPU_ONLINE_FROZEN: |
5822 | /* Strictly unnecessary, as first user will wake it. */ | 5829 | /* Strictly unnecessary, as first user will wake it. */ |
5823 | wake_up_process(cpu_rq(cpu)->migration_thread); | 5830 | wake_up_process(cpu_rq(cpu)->migration_thread); |
5824 | |||
5825 | /* Update our root-domain */ | ||
5826 | rq = cpu_rq(cpu); | ||
5827 | spin_lock_irqsave(&rq->lock, flags); | ||
5828 | if (rq->rd) { | ||
5829 | BUG_ON(!cpu_isset(cpu, rq->rd->span)); | ||
5830 | cpu_set(cpu, rq->rd->online); | ||
5831 | } | ||
5832 | spin_unlock_irqrestore(&rq->lock, flags); | ||
5833 | break; | 5831 | break; |
5834 | 5832 | ||
5835 | #ifdef CONFIG_HOTPLUG_CPU | 5833 | #ifdef CONFIG_HOTPLUG_CPU |
@@ -6105,8 +6103,6 @@ static void rq_attach_root(struct rq *rq, struct root_domain *rd) | |||
6105 | rq->rd = rd; | 6103 | rq->rd = rd; |
6106 | 6104 | ||
6107 | cpu_set(rq->cpu, rd->span); | 6105 | cpu_set(rq->cpu, rd->span); |
6108 | if (cpu_isset(rq->cpu, cpu_online_map)) | ||
6109 | cpu_set(rq->cpu, rd->online); | ||
6110 | 6106 | ||
6111 | for (class = sched_class_highest; class; class = class->next) { | 6107 | for (class = sched_class_highest; class; class = class->next) { |
6112 | if (class->join_domain) | 6108 | if (class->join_domain) |