From: Park Bumgyu Date: Wed, 17 Jan 2018 04:40:26 +0000 (+0900) Subject: [COMMON] pm_qos: send PM_QoS class at QoS notify callchain X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dbc4840089259aa3f6184bb2ce5145658dcaba64;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] pm_qos: send PM_QoS class at QoS notify callchain Change-Id: I7a839a6dfe8c1650eb92a7f6728b445b05b3952b Signed-off-by: Park Bumgyu --- diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 23b17cf961b5..73392803123f 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c @@ -710,11 +710,13 @@ int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node, } if (prev_value != curr_value) { + struct pm_qos_request *req = container_of(node, struct pm_qos_request, node); + ret = 1; if (c->notifiers) blocking_notifier_call_chain(c->notifiers, (unsigned long)curr_value, - NULL); + (void *)&req->pm_qos_class); } else { ret = 0; }