From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Luba Subject: [PATCH v3 0/2] thermal: power allocator: add new divvy-up algorithm Date: Fri, 12 May 2017 08:47:26 +0100 Message-ID: <1494575248-4166-1-git-send-email-lukasz.luba@arm.com> Return-path: Received: from foss.arm.com ([217.140.101.70]:56516 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756474AbdELHrj (ORCPT ); Fri, 12 May 2017 03:47:39 -0400 Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: linux-pm@vger.kernel.org Cc: lukasz.luba@arm.com, javi.merino@kernel.org, rui.zhang@intel.com, edubezval@gmail.com Hi, This patch set introduces a new algorithm in IPA. It distributes the power in different way. In first phase the spare power is splited between the same type of deveices. In the next phase the rest of the power is split among all other devices. More detailed description can be found in first patch. Second patch adds trace to the algorithm. Patch set is based on v4.11. Changes: v3 - trace function call moved to second patch v2 - change division to div_u64() Regards, Lukasz Luba Lukasz Luba (2): thermal: IPA: add new divvy-up algorithm trace: power allocator: add trace for divvyup algorithm drivers/thermal/power_allocator.c | 179 +++++++++++++++++++++---- include/trace/events/thermal_power_allocator.h | 40 ++++++ 2 files changed, 195 insertions(+), 24 deletions(-) -- 1.9.1