Thread (19 messages) 19 messages, 5 authors, 2013-08-14

Re: [GIT PULL] DT/core: cpu_ofnode updates for v3.12

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2013-08-14 11:37:58
Also in: linux-arm-kernel, linuxppc-dev, lkml

On Wed, 2013-08-14 at 11:01 +0100, Sudeep KarkadaNagesha wrote:
Yes this doesn't cover the historical "ibm,ppc-interrupt-server#s",
for
which we can have PPC specific wrapper above the generic one i.e. get
the cpu node and then parse for thread id under custom property.
A wrapper is wrong. I don't want to have to have all ppc callers to use
a different function.

As I said, just make a generic one that returns a thread ID, ie, same
signature as the powerpc one. Make it weak, we can override it in
powerpc-land, or we can move the ibm,ppc-interrupt-server#s handling
into the generic one, it won't hurt, but leave the thread_id return
there, it doesn't hurt it will come in handy in a few cases without
causing code duplication.

Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help