<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[patch 13/18] powerpc: Use common threadinfo allocator</title>
        <description> The core now has a threadinfo allocator which uses a kmemcache when
THREAD_SIZE &amp;lt; PAGE_SIZE.

Signed-off-by: Thomas Gleixner &amp;lt;tglx@linutronix.de&amp;gt;
Cc: Benjamin Herrenschmidt &amp;lt;benh@kernel.crashing.org&amp;gt;
---
 arch/powerpc/include/asm/thread_info.h |   13 -------------
 arch/powerpc/kernel/process.c          |   31 -------------------------------
 2 files changed, 44 deletions(-)

Index: tip/arch/powerpc/include/asm/thread_info.h
===================================================================
--- tip.orig/arch/powerpc/include/asm/thread_info.h
+++ tip/arch/powerpc/include/asm/thread_info.h
@@ -62,21 +62,8 @@ struct thread_info {
 #define init_thread_info	(init_thread_union.thread_info)
 #define init_stack		(init_thread_union.stack)
 
-/* thread information allocation */
-
-#if THREAD_SHIFT &amp;gt;= PAGE_SHIFT
-
 #define THREAD_SIZE_ORDER	(THREAD_SHIFT - PAGE_SHIFT)
 
-#else /* THREAD_SHIFT &amp;lt; PAGE_SHIFT */
-
-#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
-
-extern struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node);
-extern void free_thread_info(struct thread_info *ti);
-
-#endif /* THREAD_SHIFT &amp;lt; PAGE_SHIFT */
-
 /* how to get the thread information struct from C */
 static inline struct thread_info *current_thread_info(void)
 {
Index: tip/arch/powerpc/kernel/process.c
===================================================================
--- tip.orig/arch/powerpc/kernel/process.c
+++ tip/arch/powerpc/kernel/process.c
@@ -1252,37 +1252,6 @@ void __ppc64_runlatch_off(void)
 }
 #endif /* CONFIG_PPC64 */
 
-#if THREAD_SHIFT &amp;lt; PAGE_SHIFT
-
-static struct kmem_cache *thread_info_cache;
-
-struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node)
-{
-	struct thread_info *ti;
-
-	ti = kmem_cache_alloc_node(thread_info_cache, GFP_KERNEL, node);
-	if (unlikely(ti == NULL))
-		return NULL;
-#ifdef CONFIG_DEBUG_STACK_USAGE
-	memset(ti, 0, THREAD_SIZE);
-#endif
-	return ti;
-}
-
-void free_thread_info(struct thread_info *ti)
-{
-	kmem_cache_free(thread_info_cache, ti);
-}
-
-void thread_info_cache_init(void)
-{
-	thread_info_cache = kmem_cache_create(&amp;quot;thread_info&amp;quot;, THREAD_SIZE,
-					      THREAD_SIZE, 0, NULL);
-	BUG_ON(thread_info_cache == NULL);
-}
-
-#endif /* THREAD_SHIFT &amp;lt; PAGE_SHIFT */
-
 unsigned long arch_align_stack(unsigned long sp)
 {
 	if (!(current-&amp;gt;personality &amp;amp; ADDR_NO_RANDOMIZE) &amp;amp;&amp;amp; randomize_va_space)


--
To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-kernel&amp;quot; in
the body of a message to &amp;#109;&amp;#97;&amp;#106;&amp;#111;&amp;#114;&amp;#100;&amp;#111;&amp;#109;&amp;#111;&amp;#64;&amp;#118;&amp;#103;&amp;#101;&amp;#114;&amp;#46;&amp;#107;&amp;#101;&amp;#114;&amp;#110;&amp;#101;&amp;#108;&amp;#46;&amp;#111;&amp;#114;&amp;#103;
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/</description>
        <link>http://www.serverphorums.com/read.php?12,490831,490831#msg-490831</link>
        <lastBuildDate>Thu, 23 May 2013 19:35:24 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?12,490831,492075#msg-492075</guid>
            <title>[tip:smp/hotplug] powerpc: Use common threadinfo allocator</title>
            <link>http://www.serverphorums.com/read.php?12,490831,492075#msg-492075</link>
            <description><![CDATA[ Commit-ID:  96c951179736eb59c5f66de2ac85af9e7a6a8b15<br />
Gitweb:     <a href="http://git.kernel.org/tip/96c951179736eb59c5f66de2ac85af9e7a6a8b15" target="_blank"  rel="nofollow">http://git.kernel.org/tip/96c951179736eb59c5f66de2ac85af9e7a6a8b15</a><br />
Author:     Thomas Gleixner &lt;tglx@linutronix.de&gt;<br />
AuthorDate: Sat, 5 May 2012 15:05:45 +0000<br />
Committer:  Thomas Gleixner &lt;tglx@linutronix.de&gt;<br />
CommitDate: Tue, 8 May 2012 14:08:45 +0200<br />
<br />
powerpc: Use common threadinfo allocator<br />
<br />
The core now has a threadinfo allocator which uses a kmemcache when<br />
THREAD_SIZE &lt; PAGE_SIZE.<br />
<br />
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;<br />
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;<br />
Link: <a href="http://lkml.kernel.org/r/20120505150142.059161130@linutronix.de" target="_blank"  rel="nofollow">http://lkml.kernel.org/r/20120505150142.059161130@linutronix.de</a><br />
---<br />
 arch/powerpc/include/asm/thread_info.h |   13 -------------<br />
 arch/powerpc/kernel/process.c          |   31 -------------------------------<br />
 2 files changed, 0 insertions(+), 44 deletions(-)<br />
<br />
diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h<br />
index 4a741c7..1a1bb00 100644<br />
--- a/arch/powerpc/include/asm/thread_info.h<br />
+++ b/arch/powerpc/include/asm/thread_info.h<br />
@@ -62,21 +62,8 @@ struct thread_info {<br />
 #define init_thread_info	(init_thread_union.thread_info)<br />
 #define init_stack		(init_thread_union.stack)<br />
 <br />
-/* thread information allocation */<br />
-<br />
-#if THREAD_SHIFT &gt;= PAGE_SHIFT<br />
-<br />
 #define THREAD_SIZE_ORDER	(THREAD_SHIFT - PAGE_SHIFT)<br />
 <br />
-#else /* THREAD_SHIFT &lt; PAGE_SHIFT */<br />
-<br />
-#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR<br />
-<br />
-extern struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node);<br />
-extern void free_thread_info(struct thread_info *ti);<br />
-<br />
-#endif /* THREAD_SHIFT &lt; PAGE_SHIFT */<br />
-<br />
 /* how to get the thread information struct from C */<br />
 static inline struct thread_info *current_thread_info(void)<br />
 {<br />
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c<br />
index 4937c96..aa05935 100644<br />
--- a/arch/powerpc/kernel/process.c<br />
+++ b/arch/powerpc/kernel/process.c<br />
@@ -1252,37 +1252,6 @@ void __ppc64_runlatch_off(void)<br />
 }<br />
 #endif /* CONFIG_PPC64 */<br />
 <br />
-#if THREAD_SHIFT &lt; PAGE_SHIFT<br />
-<br />
-static struct kmem_cache *thread_info_cache;<br />
-<br />
-struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node)<br />
-{<br />
-	struct thread_info *ti;<br />
-<br />
-	ti = kmem_cache_alloc_node(thread_info_cache, GFP_KERNEL, node);<br />
-	if (unlikely(ti == NULL))<br />
-		return NULL;<br />
-#ifdef CONFIG_DEBUG_STACK_USAGE<br />
-	memset(ti, 0, THREAD_SIZE);<br />
-#endif<br />
-	return ti;<br />
-}<br />
-<br />
-void free_thread_info(struct thread_info *ti)<br />
-{<br />
-	kmem_cache_free(thread_info_cache, ti);<br />
-}<br />
-<br />
-void thread_info_cache_init(void)<br />
-{<br />
-	thread_info_cache = kmem_cache_create(&quot;thread_info&quot;, THREAD_SIZE,<br />
-					      THREAD_SIZE, 0, NULL);<br />
-	BUG_ON(thread_info_cache == NULL);<br />
-}<br />
-<br />
-#endif /* THREAD_SHIFT &lt; PAGE_SHIFT */<br />
-<br />
 unsigned long arch_align_stack(unsigned long sp)<br />
 {<br />
 	if (!(current-&gt;personality &amp; ADDR_NO_RANDOMIZE) &amp;&amp; randomize_va_space)<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  <a href="http://vger.kernel.org/majordomo-info.html" target="_blank"  rel="nofollow">http://vger.kernel.org/majordomo-info.html</a><br />
Please read the FAQ at  <a href="http://www.tux.org/lkml/" target="_blank"  rel="nofollow">http://www.tux.org/lkml/</a>]]></description>
            <dc:creator>tip-bot for Thomas Gleixner</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Tue, 08 May 2012 14:50:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?12,490831,490831#msg-490831</guid>
            <title>[patch 13/18] powerpc: Use common threadinfo allocator</title>
            <link>http://www.serverphorums.com/read.php?12,490831,490831#msg-490831</link>
            <description><![CDATA[ The core now has a threadinfo allocator which uses a kmemcache when<br />
THREAD_SIZE &lt; PAGE_SIZE.<br />
<br />
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;<br />
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;<br />
---<br />
 arch/powerpc/include/asm/thread_info.h |   13 -------------<br />
 arch/powerpc/kernel/process.c          |   31 -------------------------------<br />
 2 files changed, 44 deletions(-)<br />
<br />
Index: tip/arch/powerpc/include/asm/thread_info.h<br />
===================================================================<br />
--- tip.orig/arch/powerpc/include/asm/thread_info.h<br />
+++ tip/arch/powerpc/include/asm/thread_info.h<br />
@@ -62,21 +62,8 @@ struct thread_info {<br />
 #define init_thread_info	(init_thread_union.thread_info)<br />
 #define init_stack		(init_thread_union.stack)<br />
 <br />
-/* thread information allocation */<br />
-<br />
-#if THREAD_SHIFT &gt;= PAGE_SHIFT<br />
-<br />
 #define THREAD_SIZE_ORDER	(THREAD_SHIFT - PAGE_SHIFT)<br />
 <br />
-#else /* THREAD_SHIFT &lt; PAGE_SHIFT */<br />
-<br />
-#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR<br />
-<br />
-extern struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node);<br />
-extern void free_thread_info(struct thread_info *ti);<br />
-<br />
-#endif /* THREAD_SHIFT &lt; PAGE_SHIFT */<br />
-<br />
 /* how to get the thread information struct from C */<br />
 static inline struct thread_info *current_thread_info(void)<br />
 {<br />
Index: tip/arch/powerpc/kernel/process.c<br />
===================================================================<br />
--- tip.orig/arch/powerpc/kernel/process.c<br />
+++ tip/arch/powerpc/kernel/process.c<br />
@@ -1252,37 +1252,6 @@ void __ppc64_runlatch_off(void)<br />
 }<br />
 #endif /* CONFIG_PPC64 */<br />
 <br />
-#if THREAD_SHIFT &lt; PAGE_SHIFT<br />
-<br />
-static struct kmem_cache *thread_info_cache;<br />
-<br />
-struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node)<br />
-{<br />
-	struct thread_info *ti;<br />
-<br />
-	ti = kmem_cache_alloc_node(thread_info_cache, GFP_KERNEL, node);<br />
-	if (unlikely(ti == NULL))<br />
-		return NULL;<br />
-#ifdef CONFIG_DEBUG_STACK_USAGE<br />
-	memset(ti, 0, THREAD_SIZE);<br />
-#endif<br />
-	return ti;<br />
-}<br />
-<br />
-void free_thread_info(struct thread_info *ti)<br />
-{<br />
-	kmem_cache_free(thread_info_cache, ti);<br />
-}<br />
-<br />
-void thread_info_cache_init(void)<br />
-{<br />
-	thread_info_cache = kmem_cache_create(&quot;thread_info&quot;, THREAD_SIZE,<br />
-					      THREAD_SIZE, 0, NULL);<br />
-	BUG_ON(thread_info_cache == NULL);<br />
-}<br />
-<br />
-#endif /* THREAD_SHIFT &lt; PAGE_SHIFT */<br />
-<br />
 unsigned long arch_align_stack(unsigned long sp)<br />
 {<br />
 	if (!(current-&gt;personality &amp; ADDR_NO_RANDOMIZE) &amp;&amp; randomize_va_space)<br />
<br />
<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  <a href="http://vger.kernel.org/majordomo-info.html" target="_blank"  rel="nofollow">http://vger.kernel.org/majordomo-info.html</a><br />
Please read the FAQ at  <a href="http://www.tux.org/lkml/" target="_blank"  rel="nofollow">http://www.tux.org/lkml/</a>]]></description>
            <dc:creator>Thomas Gleixner</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Sat, 05 May 2012 17:10:03 +0200</pubDate>
        </item>
    </channel>
</rss>
