~ubuntu-branches/ubuntu/saucy/linux-exynos5/saucy-proposed

« back to all changes in this revision

Viewing changes to drivers/edac/amd64_edac.c

  • Committer: Package Import Robot
  • Author(s): Tim Gardner
  • Date: 2013-10-11 08:22:11 UTC
  • Revision ID: package-import@ubuntu.com-20131011082211-que2hf43fl0lbggm
Tags: 3.11.0-203.11
No change upload, but with orig tarball this time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2470
2470
        layers[0].size = pvt->csels[0].b_cnt;
2471
2471
        layers[0].is_virt_csrow = true;
2472
2472
        layers[1].type = EDAC_MC_LAYER_CHANNEL;
2473
 
        layers[1].size = pvt->channel_count;
 
2473
 
 
2474
        /*
 
2475
         * Always allocate two channels since we can have setups with DIMMs on
 
2476
         * only one channel. Also, this simplifies handling later for the price
 
2477
         * of a couple of KBs tops.
 
2478
         */
 
2479
        layers[1].size = 2;
2474
2480
        layers[1].is_virt_csrow = false;
 
2481
 
2475
2482
        mci = edac_mc_alloc(nid, ARRAY_SIZE(layers), layers, 0);
2476
2483
        if (!mci)
2477
2484
                goto err_siblings;