Re: Question - check in runtime which architecture am I running on

2019-06-11 Thread Oded Gabbay
On Tue, Jun 11, 2019 at 5:07 PM Christoph Hellwig wrote: > > On Tue, Jun 11, 2019 at 03:30:08PM +0300, Oded Gabbay wrote: > > Hello POWER developers, > > > > I'm trying to find out if there is an internal kernel API so that a > > PCI driver can call it to check if its PCI device is running inside

Re: Question - check in runtime which architecture am I running on

2019-06-11 Thread Christoph Hellwig
On Tue, Jun 11, 2019 at 03:30:08PM +0300, Oded Gabbay wrote: > Hello POWER developers, > > I'm trying to find out if there is an internal kernel API so that a > PCI driver can call it to check if its PCI device is running inside a > POWER9 machine. Alternatively, if that's not available, if it is

Question - check in runtime which architecture am I running on

2019-06-11 Thread Oded Gabbay
Hello POWER developers, I'm trying to find out if there is an internal kernel API so that a PCI driver can call it to check if its PCI device is running inside a POWER9 machine. Alternatively, if that's not available, if it is running on a machine with powerpc architecture. I need this informatio