Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5109
b: refs/heads/master
c: c9b3ad6
h: refs/heads/master
i:
  5107: a223631
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Jul 27, 2005
1 parent 8530a80 commit 9acbb2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: ef2a701d444a4ea9790146e92756b0dde5070a15
refs/heads/master: c9b3ad673460fc997a652cd58aa3a345d40e5218
10 changes: 1 addition & 9 deletions trunk/drivers/block/as-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1935,23 +1935,15 @@ struct as_fs_entry {
static ssize_t
as_var_show(unsigned int var, char *page)
{
var = (var * 1000) / HZ;
return sprintf(page, "%d\n", var);
}

static ssize_t
as_var_store(unsigned long *var, const char *page, size_t count)
{
unsigned long tmp;
char *p = (char *) page;

tmp = simple_strtoul(p, &p, 10);
if (tmp != 0) {
tmp = (tmp * HZ) / 1000;
if (tmp == 0)
tmp = 1;
}
*var = tmp;
*var = simple_strtoul(p, &p, 10);
return count;
}

Expand Down

0 comments on commit 9acbb2d

Please sign in to comment.