diff options
Diffstat (limited to 'arch/mips/kernel/vpe.c')
-rw-r--r-- | arch/mips/kernel/vpe.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index f6f91523cb1c..eec690af6581 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c | |||
@@ -50,7 +50,6 @@ | |||
50 | #include <asm/mips_mt.h> | 50 | #include <asm/mips_mt.h> |
51 | #include <asm/processor.h> | 51 | #include <asm/processor.h> |
52 | #include <asm/vpe.h> | 52 | #include <asm/vpe.h> |
53 | #include <asm/kspd.h> | ||
54 | 53 | ||
55 | typedef void *vpe_handle; | 54 | typedef void *vpe_handle; |
56 | 55 | ||
@@ -69,11 +68,6 @@ static char module_name[] = "vpe"; | |||
69 | static int major; | 68 | static int major; |
70 | static const int minor = 1; /* fixed for now */ | 69 | static const int minor = 1; /* fixed for now */ |
71 | 70 | ||
72 | #ifdef CONFIG_MIPS_APSP_KSPD | ||
73 | static struct kspd_notifications kspd_events; | ||
74 | static int kspd_events_reqd; | ||
75 | #endif | ||
76 | |||
77 | /* grab the likely amount of memory we will need. */ | 71 | /* grab the likely amount of memory we will need. */ |
78 | #ifdef CONFIG_MIPS_VPE_LOADER_TOM | 72 | #ifdef CONFIG_MIPS_VPE_LOADER_TOM |
79 | #define P_SIZE (2 * 1024 * 1024) | 73 | #define P_SIZE (2 * 1024 * 1024) |
@@ -1101,14 +1095,6 @@ static int vpe_open(struct inode *inode, struct file *filp) | |||
1101 | v->uid = filp->f_cred->fsuid; | 1095 | v->uid = filp->f_cred->fsuid; |
1102 | v->gid = filp->f_cred->fsgid; | 1096 | v->gid = filp->f_cred->fsgid; |
1103 | 1097 | ||
1104 | #ifdef CONFIG_MIPS_APSP_KSPD | ||
1105 | /* get kspd to tell us when a syscall_exit happens */ | ||
1106 | if (!kspd_events_reqd) { | ||
1107 | kspd_notify(&kspd_events); | ||
1108 | kspd_events_reqd++; | ||
1109 | } | ||
1110 | #endif | ||
1111 | |||
1112 | v->cwd[0] = 0; | 1098 | v->cwd[0] = 0; |
1113 | ret = getcwd(v->cwd, VPE_PATH_MAX); | 1099 | ret = getcwd(v->cwd, VPE_PATH_MAX); |
1114 | if (ret < 0) | 1100 | if (ret < 0) |
@@ -1341,13 +1327,6 @@ char *vpe_getcwd(int index) | |||
1341 | 1327 | ||
1342 | EXPORT_SYMBOL(vpe_getcwd); | 1328 | EXPORT_SYMBOL(vpe_getcwd); |
1343 | 1329 | ||
1344 | #ifdef CONFIG_MIPS_APSP_KSPD | ||
1345 | static void kspd_sp_exit( int sp_id) | ||
1346 | { | ||
1347 | cleanup_tc(get_tc(sp_id)); | ||
1348 | } | ||
1349 | #endif | ||
1350 | |||
1351 | static ssize_t store_kill(struct device *dev, struct device_attribute *attr, | 1330 | static ssize_t store_kill(struct device *dev, struct device_attribute *attr, |
1352 | const char *buf, size_t len) | 1331 | const char *buf, size_t len) |
1353 | { | 1332 | { |
@@ -1585,9 +1564,6 @@ out_reenable: | |||
1585 | emt(mtflags); | 1564 | emt(mtflags); |
1586 | local_irq_restore(flags); | 1565 | local_irq_restore(flags); |
1587 | 1566 | ||
1588 | #ifdef CONFIG_MIPS_APSP_KSPD | ||
1589 | kspd_events.kspd_sp_exit = kspd_sp_exit; | ||
1590 | #endif | ||
1591 | return 0; | 1567 | return 0; |
1592 | 1568 | ||
1593 | out_class: | 1569 | out_class: |