Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63465
b: refs/heads/master
c: 0f5d0df
h: refs/heads/master
i:
  63463: cf269f9
v: v3
  • Loading branch information
Ralf Baechle committed Jul 31, 2007
1 parent 0806117 commit b3774a7
Show file tree
Hide file tree
Showing 2 changed files with 19 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: 41790e04e6656fa1aef205ad9a76ab4edbb5f14a
refs/heads/master: 0f5d0df35ea9efe52242b9b3c79517cc50202e37
18 changes: 18 additions & 0 deletions trunk/arch/mips/kernel/vpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,23 @@ static void kspd_sp_exit( int sp_id)
}
#endif

static ssize_t store_kill(struct class_device *dev, const char *buf, size_t len)
{
struct vpe *vpe = get_vpe(tclimit);
struct vpe_notifications *not;

list_for_each_entry(not, &vpe->notify, list) {
not->stop(tclimit);
}

release_progmem(vpe->load_addr);
cleanup_tc(get_tc(tclimit));
vpe_stop(vpe);
vpe_free(vpe);

return len;
}

static ssize_t show_ntcs(struct class_device *cd, char *buf)
{
struct vpe *vpe = get_vpe(tclimit);
Expand Down Expand Up @@ -1369,6 +1386,7 @@ static ssize_t store_ntcs(struct class_device *dev, const char *buf, size_t len)
}

static struct class_device_attribute vpe_class_attributes[] = {
__ATTR(kill, S_IWUSR, NULL, store_kill),
__ATTR(ntcs, S_IRUGO | S_IWUSR, show_ntcs, store_ntcs),
{}
};
Expand Down

0 comments on commit b3774a7

Please sign in to comment.