Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336213
b: refs/heads/master
c: 24bef66
h: refs/heads/master
i:
  336211: 3cc9c2d
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 25, 2012
1 parent 1afabf9 commit dddc1e5
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 479696840239e0cc43efb3c917bdcad2174d2215
refs/heads/master: 24bef66e74d647aebd34e0bef7693512b7912029
14 changes: 11 additions & 3 deletions trunk/drivers/edac/edac_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,18 @@ struct mem_ctl_info *edac_mc_alloc(unsigned mc_num,
dimm->cschannel = chn;

/* Increment csrow location */
row++;
if (row == tot_csrows) {
row = 0;
if (layers[0].is_virt_csrow) {
chn++;
if (chn == tot_channels) {
chn = 0;
row++;
}
} else {
row++;
if (row == tot_csrows) {
row = 0;
chn++;
}
}

/* Increment dimm location */
Expand Down

0 comments on commit dddc1e5

Please sign in to comment.