Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262366
b: refs/heads/master
c: 70cb6e1
h: refs/heads/master
v: v3
  • Loading branch information
Len Brown committed Aug 3, 2011
1 parent fff69ee commit 4150478
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: a7e09d450b2e0b068e850d103b6ee1af537d1910
refs/heads/master: 70cb6e1da00db6c9212e6fd69bd96fd41c797077
5 changes: 3 additions & 2 deletions trunk/drivers/acpi/apei/ghes.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

#define GHES_ESTATUS_CACHES_SIZE 4

#define GHES_ESTATUS_IN_CACHE_MAX_NSEC (10 * NSEC_PER_SEC)
#define GHES_ESTATUS_IN_CACHE_MAX_NSEC 10000000000ULL
/* Prevent too many caches are allocated because of RCU */
#define GHES_ESTATUS_CACHE_ALLOCED_MAX (GHES_ESTATUS_CACHES_SIZE * 3 / 2)

Expand Down Expand Up @@ -622,7 +622,8 @@ static void ghes_estatus_cache_add(
break;
}
count = atomic_read(&cache->count);
period = duration / (count + 1);
period = duration;
do_div(period, (count + 1));
if (period > max_period) {
max_period = period;
slot = i;
Expand Down

0 comments on commit 4150478

Please sign in to comment.