lkml.org 
[lkml]   [2008]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[1/10 PATCH] inline __queue_work
Make __queue_work inlined. It just takes spinlock and calls another function.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

Index: linux-2.6.26-rc7-devel/kernel/workqueue.c
===================================================================
--- linux-2.6.26-rc7-devel.orig/kernel/workqueue.c 2008-06-24 07:28:15.000000000 +0200
+++ linux-2.6.26-rc7-devel/kernel/workqueue.c 2008-06-24 07:37:08.000000000 +0200
@@ -141,8 +141,8 @@
}

/* Preempt must be disabled. */
-static void __queue_work(struct cpu_workqueue_struct *cwq,
- struct work_struct *work)
+static __always_inline void __queue_work(struct cpu_workqueue_struct *cwq,
+ struct work_struct *work)
{
unsigned long flags;



\
 
 \ /
  Last update: 2008-06-24 07:57    [W:0.137 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site