Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158227
b: refs/heads/master
c: 2051cad
h: refs/heads/master
i:
  158225: 33b2015
  158223: f673fe1
v: v3
  • Loading branch information
Robert Richter committed Jul 20, 2009
1 parent e3c36db commit 9aab8c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 6bfccd099c2841e1c42530f1b6d2553bfa13be3a
refs/heads/master: 2051cade7ccbe45a8bf8b7809d56b23d6d75ad03
11 changes: 8 additions & 3 deletions trunk/drivers/oprofile/oprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ void oprofile_shutdown(void)
int oprofile_set_timeout(unsigned long val_msec)
{
int err = 0;
unsigned long time_slice;

mutex_lock(&start_mutex);

Expand All @@ -209,9 +210,13 @@ int oprofile_set_timeout(unsigned long val_msec)
goto out;
}

timeout_jiffies = msecs_to_jiffies(val_msec);
if (timeout_jiffies == MAX_JIFFY_OFFSET)
timeout_jiffies = msecs_to_jiffies(MULTIPLEXING_TIMER_DEFAULT);
time_slice = msecs_to_jiffies(val_msec);
if (time_slice == MAX_JIFFY_OFFSET) {
err = -EINVAL;
goto out;
}

timeout_jiffies = time_slice;

out:
mutex_unlock(&start_mutex);
Expand Down

0 comments on commit 9aab8c5

Please sign in to comment.