Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216763
b: refs/heads/master
c: 62da177
h: refs/heads/master
i:
  216761: 9149e73
  216759: bb4980a
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Oct 25, 2010
1 parent 7de43bf commit c063d60
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c38a90a34cfc880eb2f7234c511cdb7d8bdebc45
refs/heads/master: 62da177ac2bc1f6f3707230070af268b1e689651
5 changes: 3 additions & 2 deletions trunk/drivers/s390/cio/chsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,17 +680,18 @@ int chsc_determine_base_channel_path_desc(struct chp_id chpid,
{
struct chsc_response_struct *chsc_resp;
struct chsc_scpd *scpd_area;
unsigned long flags;
int ret;

spin_lock_irq(&chsc_page_lock);
spin_lock_irqsave(&chsc_page_lock, flags);
scpd_area = chsc_page;
ret = chsc_determine_channel_path_desc(chpid, 0, 0, 0, 0, scpd_area);
if (ret)
goto out;
chsc_resp = (void *)&scpd_area->response;
memcpy(desc, &chsc_resp->data, sizeof(*desc));
out:
spin_unlock_irq(&chsc_page_lock);
spin_unlock_irqrestore(&chsc_page_lock, flags);
return ret;
}

Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/s390/cio/css.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,16 @@ subsys_initcall_sync(channel_subsystem_init_sync);

void channel_subsystem_reinit(void)
{
struct channel_path *chp;
struct chp_id chpid;

chsc_enable_facility(CHSC_SDA_OC_MSS);
chp_id_for_each(&chpid) {
chp = chpid_to_chp(chpid);
if (!chp)
continue;
chsc_determine_base_channel_path_desc(chpid, &chp->desc);
}
}

#ifdef CONFIG_PROC_FS
Expand Down

0 comments on commit c063d60

Please sign in to comment.