]> Git Repo - linux.git/blobdiff - lib/dynamic_queue_limits.c
ACPI: resource: do IRQ override on LENOVO IdeaPad
[linux.git] / lib / dynamic_queue_limits.c
index 6a406fafb5d611771fd6db769efd584719a0ebc6..fde0aa2441480032d8ec1b2a42fef62753c0afe2 100644 (file)
@@ -21,7 +21,7 @@ void dql_completed(struct dql *dql, unsigned int count)
        unsigned int ovlimit, completed, num_queued;
        bool all_prev_completed;
 
-       num_queued = ACCESS_ONCE(dql->num_queued);
+       num_queued = READ_ONCE(dql->num_queued);
 
        /* Can't complete more than what's in queue */
        BUG_ON(count > num_queued - dql->num_completed);
@@ -60,8 +60,8 @@ void dql_completed(struct dql *dql, unsigned int count)
                 * A decrease is only considered if the queue has been busy in
                 * the whole interval (the check above).
                 *
-                * If there is slack, the amount of execess data queued above
-                * the the amount needed to prevent starvation, the queue limit
+                * If there is slack, the amount of excess data queued above
+                * the amount needed to prevent starvation, the queue limit
                 * can be decreased.  To avoid hysteresis we consider the
                 * minimum amount of slack found over several iterations of the
                 * completion routine.
@@ -128,12 +128,11 @@ void dql_reset(struct dql *dql)
 }
 EXPORT_SYMBOL(dql_reset);
 
-int dql_init(struct dql *dql, unsigned hold_time)
+void dql_init(struct dql *dql, unsigned int hold_time)
 {
        dql->max_limit = DQL_MAX_LIMIT;
        dql->min_limit = 0;
        dql->slack_hold_time = hold_time;
        dql_reset(dql);
-       return 0;
 }
 EXPORT_SYMBOL(dql_init);
This page took 0.035048 seconds and 4 git commands to generate.