static long i915_gem_purge(struct drm_i915_private *dev_priv, long target);
static long i915_gem_shrink_all(struct drm_i915_private *dev_priv);
static void i915_gem_object_truncate(struct drm_i915_gem_object *obj);
-@@ -4377,8 +4382,12 @@ i915_gem_load(struct drm_device *dev)
+@@ -4360,8 +4365,12 @@ i915_gem_load(struct drm_device *dev)
dev_priv->mm.interruptible = true;
dev_priv->mm.inactive_shrinker.seeks = DEFAULT_SEEKS;
register_shrinker(&dev_priv->mm.inactive_shrinker);
}
-@@ -4601,8 +4610,14 @@ static bool mutex_is_locked_by(struct mu
+@@ -4584,8 +4593,14 @@ static bool mutex_is_locked_by(struct mu
#endif
}
{
struct drm_i915_private *dev_priv =
container_of(shrinker,
-@@ -4611,7 +4626,12 @@ i915_gem_inactive_count(struct shrinker
+@@ -4594,7 +4609,12 @@ i915_gem_inactive_count(struct shrinker
struct drm_device *dev = dev_priv->dev;
struct drm_i915_gem_object *obj;
bool unlock = true;
if (!mutex_trylock(&dev->struct_mutex)) {
if (!mutex_is_locked_by(&dev->struct_mutex, current))
-@@ -4623,6 +4643,17 @@ i915_gem_inactive_count(struct shrinker
+@@ -4606,6 +4626,17 @@ i915_gem_inactive_count(struct shrinker
unlock = false;
}
count = 0;
list_for_each_entry(obj, &dev_priv->mm.unbound_list, global_list)
if (obj->pages_pin_count == 0)
-@@ -4636,6 +4667,7 @@ i915_gem_inactive_count(struct shrinker
+@@ -4619,6 +4650,7 @@ i915_gem_inactive_count(struct shrinker
return count;
}
static unsigned long
i915_gem_inactive_scan(struct shrinker *shrinker, struct shrink_control *sc)
{
-@@ -4669,3 +4701,4 @@ i915_gem_inactive_scan(struct shrinker *
+@@ -4652,3 +4684,4 @@ i915_gem_inactive_scan(struct shrinker *
mutex_unlock(&dev->struct_mutex);
return freed;
}
--- a/drivers/net/ethernet/atheros/alx/main.c
+++ b/drivers/net/ethernet/atheros/alx/main.c
-@@ -1404,6 +1404,9 @@ static int alx_resume(struct device *dev
+@@ -1403,6 +1403,9 @@ static int alx_resume(struct device *dev
return __alx_open(alx, true);
}
static SIMPLE_DEV_PM_OPS(alx_pm_ops, alx_suspend, alx_resume);
#define ALX_PM_OPS (&alx_pm_ops)
#else
-@@ -1506,7 +1509,12 @@ static struct pci_driver alx_driver = {
+@@ -1505,7 +1508,12 @@ static struct pci_driver alx_driver = {
.probe = alx_probe,
.remove = alx_remove,
.err_handler = &alx_err_handlers,