Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43863
b: refs/heads/master
c: 85eca85
h: refs/heads/master
i:
  43861: 34cce67
  43859: 05bc475
  43855: d0a67c4
v: v3
  • Loading branch information
Ralph Wuerthner authored and Martin Schwidefsky committed Dec 8, 2006
1 parent 1752afe commit 2fce7cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c16375329c2ab4667df873394c4be7a61d163c62
refs/heads/master: 85eca8503997cf3a869b159954f703530c865299
17 changes: 17 additions & 0 deletions trunk/drivers/s390/crypto/ap_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <asm/s390_rdev.h>
#include <asm/reset.h>

#include "ap_bus.h"

Expand Down Expand Up @@ -1128,6 +1129,19 @@ static void ap_poll_thread_stop(void)
mutex_unlock(&ap_poll_thread_mutex);
}

static void ap_reset(void)
{
int i, j;

for (i = 0; i < AP_DOMAINS; i++)
for (j = 0; j < AP_DEVICES; j++)
ap_reset_queue(AP_MKQID(j, i));
}

static struct reset_call ap_reset_call = {
.fn = ap_reset,
};

/**
* The module initialization code.
*/
Expand All @@ -1144,6 +1158,7 @@ int __init ap_module_init(void)
printk(KERN_WARNING "AP instructions not installed.\n");
return -ENODEV;
}
register_reset_call(&ap_reset_call);

/* Create /sys/bus/ap. */
rc = bus_register(&ap_bus_type);
Expand Down Expand Up @@ -1197,6 +1212,7 @@ int __init ap_module_init(void)
bus_remove_file(&ap_bus_type, ap_bus_attrs[i]);
bus_unregister(&ap_bus_type);
out:
unregister_reset_call(&ap_reset_call);
return rc;
}

Expand Down Expand Up @@ -1227,6 +1243,7 @@ void ap_module_exit(void)
for (i = 0; ap_bus_attrs[i]; i++)
bus_remove_file(&ap_bus_type, ap_bus_attrs[i]);
bus_unregister(&ap_bus_type);
unregister_reset_call(&ap_reset_call);
}

#ifndef CONFIG_ZCRYPT_MONOLITHIC
Expand Down

0 comments on commit 2fce7cd

Please sign in to comment.