From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754970AbcESQCn (ORCPT ); Thu, 19 May 2016 12:02:43 -0400 Received: from ms01.sssup.it ([193.205.80.99]:47827 "EHLO sssup.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754127AbcESQCl (ORCPT ); Thu, 19 May 2016 12:02:41 -0400 From: Tommaso Cucinotta To: Luca Abeni , Juri Lelli , Peter Zijlstra , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Tommaso Cucinotta Subject: SCHED_DEADLINE cpudeadline.{h,c} fixup Date: Thu, 19 May 2016 18:02:08 +0200 Message-Id: <1463673732-944-1-git-send-email-tommaso.cucinotta@sssup.it> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I took Luca's advice to isolate the deadline wrap-around bugfix with a first minimally invasive patch (1-line). This leaves some weirdness in how cpudl_change_key() is called. Therefore, the second patch does a minimum of refactory to make things more explicit and clear. The 3rd patch contains now the actual performance enhancement (avoiding unneeded swaps during heapify operations), which, as said in the previous post, achieves up to 6% of speed-up for cpudl_set() calls. Finally, the 4th patch is another clear-up patch touching cpudeadline.{h,c} and deadline.c. Now you call cpudl_clear(cp, cpu) and cpudl_set(cp, cpu, dl) instead of cpudl_set(cp, cpu, 0 /* dl */, 0 /* is_valid */) and cpudl_set(cp, cpu, dl, 1 /* is_valid */). Please, let me know how this looks like now. Thanks, Tommaso