Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336530
b: refs/heads/master
c: 0a5dfc3
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Nov 28, 2012
1 parent dff1c4f commit 887c10c
Show file tree
Hide file tree
Showing 3 changed files with 3 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: bb89f5a0547a56cf2406f1c3d6cd44f8fa62256d
refs/heads/master: 0a5dfc31405d9b07a5b37f150815b9ad09685460
2 changes: 1 addition & 1 deletion trunk/drivers/edac/amd64_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ static u32 amd64_csrow_nr_pages(struct amd64_pvt *pvt, u8 dct, int csrow_nr)
* number of bits to shift the DBAM register to extract the proper CSROW
* field.
*/
cs_mode = (dbam >> ((csrow_nr / 2) * 4)) & 0xF;
cs_mode = DBAM_DIMM(csrow_nr / 2, dbam);

nr_pages = pvt->ops->dbam_to_cs(pvt, dct, cs_mode) << (20 - PAGE_SHIFT);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/edac/amd64_edac.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
#define DBAM1 0x180

/* Extract the DIMM 'type' on the i'th DIMM from the DBAM reg value passed */
#define DBAM_DIMM(i, reg) ((((reg) >> (4*i))) & 0xF)
#define DBAM_DIMM(i, reg) ((((reg) >> (4*(i)))) & 0xF)

#define DBAM_MAX_VALUE 11

Expand Down

0 comments on commit 887c10c

Please sign in to comment.