aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2015-07-16 16:40:27 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-11-09 03:10:48 -0500
commitcd5dead9d32423d63c802328c0563d7ff29647cd (patch)
tree69c39a2c361a7d71ff2a03f9fc0da39ffd3f378c
parent230ccb370f8f95b2600a1fce90ceb8ee70a15dbc (diff)
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>
-rw-r--r--drivers/s390/cio/css.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index 2ee3053bdc12..489e703dc82d 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -702,17 +702,12 @@ css_generate_pgid(struct channel_subsystem *css, u32 tod_high)
702 css->global_pgid.pgid_high.ext_cssid.version = 0x80; 702 css->global_pgid.pgid_high.ext_cssid.version = 0x80;
703 css->global_pgid.pgid_high.ext_cssid.cssid = css->cssid; 703 css->global_pgid.pgid_high.ext_cssid.cssid = css->cssid;
704 } else { 704 } else {
705#ifdef CONFIG_SMP
706 css->global_pgid.pgid_high.cpu_addr = stap(); 705 css->global_pgid.pgid_high.cpu_addr = stap();
707#else
708 css->global_pgid.pgid_high.cpu_addr = 0;
709#endif
710 } 706 }
711 get_cpu_id(&cpu_id); 707 get_cpu_id(&cpu_id);
712 css->global_pgid.cpu_id = cpu_id.ident; 708 css->global_pgid.cpu_id = cpu_id.ident;
713 css->global_pgid.cpu_model = cpu_id.machine; 709 css->global_pgid.cpu_model = cpu_id.machine;
714 css->global_pgid.tod_high = tod_high; 710 css->global_pgid.tod_high = tod_high;
715
716} 711}
717 712
718static void 713static void