diff options
| author | Ingo Molnar <mingo@kernel.org> | 2014-06-12 07:46:25 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2014-06-12 07:46:37 -0400 |
| commit | 535560d841b2d54f31280e05e9c6ffd19da0c4e7 (patch) | |
| tree | 5320502c072284813f3d3d42412bd73e26130863 /drivers | |
| parent | f602d0632755be4f7eddfdd6c0af13216790177b (diff) | |
| parent | 3cf2f34e1a3d4d5ff209d087925cf950e52f4805 (diff) | |
Merge commit '3cf2f34' into sched/core, to fix build error
Fix this dependency on the locking tree's smp_mb*() API changes:
kernel/sched/idle.c:247:3: error: implicit declaration of function ‘smp_mb__after_atomic’ [-Werror=implicit-function-declaration]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers')
44 files changed, 153 insertions, 153 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index ae098a261fcd..eee55c1e5fde 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
| @@ -105,7 +105,7 @@ static bool genpd_sd_counter_dec(struct generic_pm_domain *genpd) | |||
| 105 | static void genpd_sd_counter_inc(struct generic_pm_domain *genpd) | 105 | static void genpd_sd_counter_inc(struct generic_pm_domain *genpd) |
| 106 | { | 106 | { |
| 107 | atomic_inc(&genpd->sd_count); | 107 | atomic_inc(&genpd->sd_count); |
| 108 | smp_mb__after_atomic_inc(); | 108 | smp_mb__after_atomic(); |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | static void genpd_acquire_lock(struct generic_pm_domain *genpd) | 111 | static void genpd_acquire_lock(struct generic_pm_domain *genpd) |
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 59c5abe32f06..4fd8d6c1c3d2 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
| @@ -224,9 +224,9 @@ static int get_slot(struct mtip_port *port) | |||
| 224 | */ | 224 | */ |
| 225 | static inline void release_slot(struct mtip_port *port, int tag) | 225 | static inline void release_slot(struct mtip_port *port, int tag) |
| 226 | { | 226 | { |
| 227 | smp_mb__before_clear_bit(); | 227 | smp_mb__before_atomic(); |
| 228 | clear_bit(tag, port->allocated); | 228 | clear_bit(tag, port->allocated); |
| 229 | smp_mb__after_clear_bit(); | 229 | smp_mb__after_atomic(); |
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | /* | 232 | /* |
diff --git a/drivers/cpuidle/coupled.c b/drivers/cpuidle/coupled.c index cb6654bfad77..73fe2f8d7f96 100644 --- a/drivers/cpuidle/coupled.c +++ b/drivers/cpuidle/coupled.c | |||
| @@ -159,7 +159,7 @@ void cpuidle_coupled_parallel_barrier(struct cpuidle_device *dev, atomic_t *a) | |||
| 159 | { | 159 | { |
| 160 | int n = dev->coupled->online_count; | 160 | int n = dev->coupled->online_count; |
| 161 | 161 | ||
| 162 | smp_mb__before_atomic_inc(); | 162 | smp_mb__before_atomic(); |
| 163 | atomic_inc(a); | 163 | atomic_inc(a); |
| 164 | 164 | ||
| 165 | while (atomic_read(a) < n) | 165 | while (atomic_read(a) < n) |
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index 8db663219560..995dd42a2627 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
| @@ -3498,7 +3498,7 @@ static int ohci_flush_iso_completions(struct fw_iso_context *base) | |||
| 3498 | } | 3498 | } |
| 3499 | 3499 | ||
| 3500 | clear_bit_unlock(0, &ctx->flushing_completions); | 3500 | clear_bit_unlock(0, &ctx->flushing_completions); |
| 3501 | smp_mb__after_clear_bit(); | 3501 | smp_mb__after_atomic(); |
| 3502 | } | 3502 | } |
| 3503 | 3503 | ||
| 3504 | tasklet_enable(&ctx->context.tasklet); | 3504 | tasklet_enable(&ctx->context.tasklet); |
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index c2676b5908d9..ec5c3f4cdd01 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
| @@ -156,7 +156,7 @@ static void vblank_disable_and_save(struct drm_device *dev, int crtc) | |||
| 156 | */ | 156 | */ |
| 157 | if ((vblrc > 0) && (abs64(diff_ns) > 1000000)) { | 157 | if ((vblrc > 0) && (abs64(diff_ns) > 1000000)) { |
| 158 | atomic_inc(&dev->vblank[crtc].count); | 158 | atomic_inc(&dev->vblank[crtc].count); |
| 159 | smp_mb__after_atomic_inc(); | 159 | smp_mb__after_atomic(); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | /* Invalidate all timestamps while vblank irq's are off. */ | 162 | /* Invalidate all timestamps while vblank irq's are off. */ |
| @@ -864,9 +864,9 @@ static void drm_update_vblank_count(struct drm_device *dev, int crtc) | |||
| 864 | vblanktimestamp(dev, crtc, tslot) = t_vblank; | 864 | vblanktimestamp(dev, crtc, tslot) = t_vblank; |
| 865 | } | 865 | } |
| 866 | 866 | ||
| 867 | smp_mb__before_atomic_inc(); | 867 | smp_mb__before_atomic(); |
| 868 | atomic_add(diff, &dev->vblank[crtc].count); | 868 | atomic_add(diff, &dev->vblank[crtc].count); |
| 869 | smp_mb__after_atomic_inc(); | 869 | smp_mb__after_atomic(); |
| 870 | } | 870 | } |
| 871 | 871 | ||
| 872 | /** | 872 | /** |
| @@ -1330,9 +1330,9 @@ bool drm_handle_vblank(struct drm_device *dev, int crtc) | |||
| 1330 | /* Increment cooked vblank count. This also atomically commits | 1330 | /* Increment cooked vblank count. This also atomically commits |
| 1331 | * the timestamp computed above. | 1331 | * the timestamp computed above. |
| 1332 | */ | 1332 | */ |
| 1333 | smp_mb__before_atomic_inc(); | 1333 | smp_mb__before_atomic(); |
| 1334 | atomic_inc(&dev->vblank[crtc].count); | 1334 | atomic_inc(&dev->vblank[crtc].count); |
| 1335 | smp_mb__after_atomic_inc(); | 1335 | smp_mb__after_atomic(); |
| 1336 | } else { | 1336 | } else { |
| 1337 | DRM_DEBUG("crtc %d: Redundant vblirq ignored. diff_ns = %d\n", | 1337 | DRM_DEBUG("crtc %d: Redundant vblirq ignored. diff_ns = %d\n", |
| 1338 | crtc, (int) diff_ns); | 1338 | crtc, (int) diff_ns); |
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index f98ba4e6e70b..0b99de95593b 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
| @@ -2157,7 +2157,7 @@ static void i915_error_work_func(struct work_struct *work) | |||
| 2157 | * updates before | 2157 | * updates before |
| 2158 | * the counter increment. | 2158 | * the counter increment. |
| 2159 | */ | 2159 | */ |
| 2160 | smp_mb__before_atomic_inc(); | 2160 | smp_mb__before_atomic(); |
| 2161 | atomic_inc(&dev_priv->gpu_error.reset_counter); | 2161 | atomic_inc(&dev_priv->gpu_error.reset_counter); |
| 2162 | 2162 | ||
| 2163 | kobject_uevent_env(&dev->primary->kdev->kobj, | 2163 | kobject_uevent_env(&dev->primary->kdev->kobj, |
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index 82c9c5d35251..d2ebcf323094 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h | |||
| @@ -828,7 +828,7 @@ static inline bool cached_dev_get(struct cached_dev *dc) | |||
| 828 | return false; | 828 | return false; |
| 829 | 829 | ||
| 830 | /* Paired with the mb in cached_dev_attach */ | 830 | /* Paired with the mb in cached_dev_attach */ |
