s390/cio: simplify css_generate_pgid
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 16 Jul 2015 20:40:27 +0000 (22:40 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 9 Nov 2015 08:10:48 +0000 (09:10 +0100)
commitcd5dead9d32423d63c802328c0563d7ff29647cd
tree69c39a2c361a7d71ff2a03f9fc0da39ffd3f378c
parent230ccb370f8f95b2600a1fce90ceb8ee70a15dbc
s390/cio: simplify css_generate_pgid

Simplify the css_generate_pgid code by using stap() independent of
CONFIG_SMP. For !CONFIG_SMP builds stap() will deliver the address
of the cpu we IPL'ed from (which can be != 0).

Note: the ifdef was likely added to be compatible with _very_ old
machines which we don't support anyway.

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/css.c