Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200301
b: refs/heads/master
c: b9b76df
h: refs/heads/master
i:
  200299: f5585af
v: v3
  • Loading branch information
Oleg Nesterov authored and Frederic Weisbecker committed Jun 8, 2010
1 parent 032bf95 commit 870a243
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 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: 84bb671dc46d77d665d2b5e74539e81b2129bb3e
refs/heads/master: b9b76dfaac6fa2c289ee8a005be637afd2da7e2f
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/oprofile/op_model_cell.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ static int calculate_lfsr(int n)
index = ENTRIES-1;

/* make sure index is valid */
if ((index >= ENTRIES) || (index < 0))
if ((index > ENTRIES) || (index < 0))
index = ENTRIES-1;

return initial_lfsr[index];
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/trace/events/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

#define TP_STORE_SIGINFO(__entry, info) \
do { \
if (info == SEND_SIG_NOINFO) { \
if (info == SEND_SIG_NOINFO || \
info == SEND_SIG_FORCED) { \
__entry->errno = 0; \
__entry->code = SI_USER; \
} else if (info == SEND_SIG_PRIV) { \
Expand Down
5 changes: 1 addition & 4 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1507,9 +1507,6 @@ do { \
divisor = nsec * frequency;
}

if (!divisor)
return dividend;

return div64_u64(dividend, divisor);
}

Expand All @@ -1532,7 +1529,7 @@ static int perf_event_start(struct perf_event *event)
static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count)
{
struct hw_perf_event *hwc = &event->hw;
s64 period, sample_period;
u64 period, sample_period;
s64 delta;

period = perf_calculate_period(event, nsec, count);
Expand Down

0 comments on commit 870a243

Please sign in to comment.