From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751766AbdEPLsX (ORCPT ); Tue, 16 May 2017 07:48:23 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:50014 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751080AbdEPLsW (ORCPT ); Tue, 16 May 2017 07:48:22 -0400 From: Christoph Hellwig To: Thomas Gleixner Cc: Mark Gross , Tejun Heo , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: RFC: better timer interface Date: Tue, 16 May 2017 13:48:03 +0200 Message-Id: <20170516114812.10660-1-hch@lst.de> X-Mailer: git-send-email 2.11.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series attempts to provide a "modern" timer interface where the callback gets the timer_list structure as an argument so that it can use container_of instead of having to cast to/from unsigned long all the time (or even worse use function pointer casts, we have quite a few of those as well). For that it steals another bit from the cpu mask to add a modern flag, and if that flag is set the different new function prototype is used. Last but least new helpers to initialize these modern timers are added. Instead of having a larger number of initialization macros we simply pass the timer flags to them.