From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id CFD906B004F for ; Wed, 17 Jun 2009 17:12:56 -0400 (EDT) Received: from localhost (smtp.ultrahosting.com [127.0.0.1]) by smtp.ultrahosting.com (Postfix) with ESMTP id 11BE582C547 for ; Wed, 17 Jun 2009 17:29:35 -0400 (EDT) Received: from smtp.ultrahosting.com ([74.213.175.254]) by localhost (smtp.ultrahosting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P1Ov3pki9Aod for ; Wed, 17 Jun 2009 17:29:30 -0400 (EDT) Received: from gentwo.org (unknown [74.213.171.31]) by smtp.ultrahosting.com (Postfix) with ESMTP id 682F182C52A for ; Wed, 17 Jun 2009 17:29:30 -0400 (EDT) Message-Id: <20090617203337.399182817@gentwo.org> Date: Wed, 17 Jun 2009 16:33:37 -0400 From: cl@linux-foundation.org Subject: [this_cpu_xx V2 00/19] Introduce this_cpu_xx operations Sender: owner-linux-mm@kvack.org To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, Tejun Heo , mingo@elte.hu, rusty@rustcorp.com.au, davem@davemloft.net List-ID: V1->V2: - Various minor fixes - Add SLUB conversion - Add Page allocator conversion - Patch against the git tree of today The patchset introduces various operations to allow efficient access to per cpu variables for the current processor. Currently there is no way in the core to calcualte the address of the instance of a per cpu variable without a table lookup through per_cpu_ptr(x, smp_processor_id()) The patchset introduces a way to calculate the address using the offset that is available in arch specific ways (register or special memory locations) using this_cpu_ptr(x) In addition operations are provided that can operate on per cpu pointers. This is necessary to be able to use the addresses generated by the new per cpu allocator with per cpu RMW instructions. The arch provided RMW instructions can be used to avoid having to switch off preemption and interrupts for per cpu counter updates. One caveat with this patchset is that it currently does not work on S/390. Tejun Heo has a patchset that fixes the SHIFT_PERCPU_PTR issues on that platform. That patch is required before S/390 will work. Patchset will reduce the code size and increase speed of operations for dynamically allocated per cpu based statistics. Patch shows how this could be done. There are many other places in the code where these macros could be beneficial. -- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org