<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/arch/powerpc, branch v3.2</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/arch/powerpc?h=v3.2</id>
<link rel='self' href='https://git.amat.us/linux/atom/arch/powerpc?h=v3.2'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-12-30T00:31:57Z</updated>
<entry>
<title>procfs: do not confuse jiffies with cputime64_t</title>
<updated>2011-12-30T00:31:57Z</updated>
<author>
<name>Andreas Schwab</name>
<email>schwab@linux-m68k.org</email>
</author>
<published>2011-12-28T23:57:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=34845636a184f3be91a531098192592cbe6db587'/>
<id>urn:sha1:34845636a184f3be91a531098192592cbe6db587</id>
<content type='text'>
Commit 2a95ea6c0d129b4 ("procfs: do not overflow get_{idle,iowait}_time
for nohz") did not take into account that one some architectures jiffies
and cputime use different units.

This causes get_idle_time() to return numbers in the wrong units, making
the idle time fields in /proc/stat wrong.

Instead of converting the usec value returned by
get_cpu_{idle,iowait}_time_us to units of jiffies, use the new function
usecs_to_cputime64 to convert it to the correct unit of cputime64_t.

Signed-off-by: Andreas Schwab &lt;schwab@linux-m68k.org&gt;
Acked-by: Michal Hocko &lt;mhocko@suse.cz&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: "Artem S. Tashkinov" &lt;t.artem@mailcity.com&gt;
Cc: Dave Jones &lt;davej@redhat.com&gt;
Cc: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: "Luck, Tony" &lt;tony.luck@intel.com&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Cc: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>KVM: PPC: e500: include linux/export.h</title>
<updated>2011-12-26T11:28:03Z</updated>
<author>
<name>Scott Wood</name>
<email>scottwood@freescale.com</email>
</author>
<published>2011-12-20T14:43:45Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fae9dbb4b462d2c908186a47464c7a5299ee27a9'/>
<id>urn:sha1:fae9dbb4b462d2c908186a47464c7a5299ee27a9</id>
<content type='text'>
This is required for THIS_MODULE.  We recently stopped acquiring
it via some other header.

Signed-off-by: Scott Wood &lt;scottwood@freescale.com&gt;
Signed-off-by: Alexander Graf &lt;agraf@suse.de&gt;
</content>
</entry>
<entry>
<title>KVM: PPC: fix kvmppc_start_thread() for CONFIG_SMP=N</title>
<updated>2011-12-26T11:28:02Z</updated>
<author>
<name>Michael Neuling</name>
<email>mikey@neuling.org</email>
</author>
<published>2011-11-10T16:03:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=251da03897b383904901620835044e298061875f'/>
<id>urn:sha1:251da03897b383904901620835044e298061875f</id>
<content type='text'>
Currently kvmppc_start_thread() tries to wake other SMT threads via
xics_wake_cpu().  Unfortunately xics_wake_cpu only exists when
CONFIG_SMP=Y so when compiling with CONFIG_SMP=N we get:

  arch/powerpc/kvm/built-in.o: In function `.kvmppc_start_thread':
  book3s_hv.c:(.text+0xa1e0): undefined reference to `.xics_wake_cpu'

The following should be fine since kvmppc_start_thread() shouldn't
called to start non-zero threads when SMP=N since threads_per_core=1.

Signed-off-by: Michael Neuling &lt;mikey@neuling.org&gt;
Signed-off-by: Alexander Graf &lt;agraf@suse.de&gt;
</content>
</entry>
<entry>
<title>KVM: PPC: protect use of kvmppc_h_pr</title>
<updated>2011-12-26T11:28:01Z</updated>
<author>
<name>Andreas Schwab</name>
<email>schwab@linux-m68k.org</email>
</author>
<published>2011-11-08T07:17:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=96f38d72867bc54c312decaf8463f1e9607136da'/>
<id>urn:sha1:96f38d72867bc54c312decaf8463f1e9607136da</id>
<content type='text'>
kvmppc_h_pr is only available if CONFIG_KVM_BOOK3S_64_PR.

Signed-off-by: Andreas Schwab &lt;schwab@linux-m68k.org&gt;
Signed-off-by: Alexander Graf &lt;agraf@suse.de&gt;
</content>
</entry>
<entry>
<title>KVM: PPC: move compute_tlbie_rb to book3s_64 common header</title>
<updated>2011-12-26T11:28:00Z</updated>
<author>
<name>Andreas Schwab</name>
<email>schwab@linux-m68k.org</email>
</author>
<published>2011-11-08T07:08:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=36cc66d638d3ffbc635b0d48b29c1128fdad38f4'/>
<id>urn:sha1:36cc66d638d3ffbc635b0d48b29c1128fdad38f4</id>
<content type='text'>
compute_tlbie_rb is only used on ppc64 and cannot be compiled on ppc32.

Signed-off-by: Andreas Schwab &lt;schwab@linux-m68k.org&gt;
Signed-off-by: Alexander Graf &lt;agraf@suse.de&gt;
</content>
</entry>
<entry>
<title>powerpc/44x: Add mtd ndfc to the ppx44x defconfig</title>
<updated>2011-11-24T23:06:00Z</updated>
<author>
<name>Tony Breeds</name>
<email>tony@bakeyournoodle.com</email>
</author>
<published>2011-11-22T13:50:46Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=49e44064d7e3f24f874a51dd513b83ef9994aa8a'/>
<id>urn:sha1:49e44064d7e3f24f874a51dd513b83ef9994aa8a</id>
<content type='text'>
Signed-off-by: Tony Breeds &lt;tony@bakeyournoodle.com&gt;
Acked-by: Josh Boyer &lt;jwboyer@gmail.com&gt;
Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc: Fix compiliation with hugetlbfs enabled</title>
<updated>2011-11-24T23:05:59Z</updated>
<author>
<name>Kumar Gala</name>
<email>galak@kernel.crashing.org</email>
</author>
<published>2011-11-24T09:40:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=13020be8be2d5843c3810169cdbcc51f07ff020f'/>
<id>urn:sha1:13020be8be2d5843c3810169cdbcc51f07ff020f</id>
<content type='text'>
arch/powerpc/mm/hugetlbpage.c: In function 'reserve_hugetlb_gpages':
arch/powerpc/mm/hugetlbpage.c:312:2: error: implicit declaration of function 'parse_args'

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>arch/powerpc/sysdev/ehv_pic.c: add missing kfree</title>
<updated>2011-11-24T08:01:24Z</updated>
<author>
<name>Julia Lawall</name>
<email>julia@diku.dk</email>
</author>
<published>2011-08-08T11:18:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e3854b6e25d1b092c30c5f81a04fe6fc839b1e26'/>
<id>urn:sha1:e3854b6e25d1b092c30c5f81a04fe6fc839b1e26</id>
<content type='text'>
At this point, ehv_pic has been allocated but not stored anywhere, so it
should be freed before leaving the function.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@exists@
local idexpression x;
statement S,S1;
expression E;
identifier fl;
expression *ptr != NULL;
@@

x = \(kmalloc\|kzalloc\|kcalloc\)(...);
...
if (x == NULL) S
&lt;... when != x
     when != if (...) { &lt;+...kfree(x)...+&gt; }
     when any
     when != true x == NULL
x-&gt;fl
...&gt;
(
if (x == NULL) S1
|
if (...) { ... when != x
               when forall
(
 return \(0\|&lt;+...x...+&gt;\|ptr\);
|
* return ...;
)
}
)
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Acked-by: Timur Tabi &lt;timur@freescale.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/fsl-lbc: Fix for fsl_upm</title>
<updated>2011-11-24T08:00:42Z</updated>
<author>
<name>Alexandre Rusev</name>
<email>arusev@dev.rtsoft.ru</email>
</author>
<published>2011-10-27T14:18:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7145cf12095265b8a292835d0f6da87f89fac1d1'/>
<id>urn:sha1:7145cf12095265b8a292835d0f6da87f89fac1d1</id>
<content type='text'>
If Freescale LBC driver fails to initialise itself from device tree, then
internal structure is freed only but not NULL-fied.  As result functions
fsl_lbc_find() after checking the structure is not NULL are trying to
access device registers.

Signed-off-by: Alexandre Rusev &lt;arusev@dev.rtsoft.ru&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: Fixup QE_General4 errata</title>
<updated>2011-11-24T07:28:42Z</updated>
<author>
<name>Joakim Tjernlund</name>
<email>Joakim.Tjernlund@transmode.se</email>
</author>
<published>2011-08-23T12:30:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ae5f8c19827493e5a8d48c2c6a8a92201a94f08b'/>
<id>urn:sha1:ae5f8c19827493e5a8d48c2c6a8a92201a94f08b</id>
<content type='text'>
QE_General4 should only round up the divisor iff divisor is &gt; 3.
Rounding up lower divisors makes the error too big, causing USB
on MPC832x to fail.

Signed-off-by: Joakim Tjernlund &lt;Joakim.Tjernlund@transmode.se&gt;
Acked-by: Timur Tabi &lt;timur@freescale.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
</feed>
