Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217361
b: refs/heads/master
c: e914460
h: refs/heads/master
i:
  217359: da51fd9
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 24, 2010
1 parent 2bc4ae1 commit bd67077
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 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: 1288c18f48d9bf373dbed6b688cde36dc970b1ed
refs/heads/master: e9144601d364d5b81f3e63949337f8507eb58dca
2 changes: 2 additions & 0 deletions trunk/drivers/edac/edac_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@

#if PAGE_SHIFT < 20
#define PAGES_TO_MiB( pages ) ( ( pages ) >> ( 20 - PAGE_SHIFT ) )
#define MiB_TO_PAGES(mb) ((mb) >> (20 - PAGE_SHIFT))
#else /* PAGE_SHIFT > 20 */
#define PAGES_TO_MiB( pages ) ( ( pages ) << ( PAGE_SHIFT - 20 ) )
#define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20))
#endif

#define edac_printk(level, prefix, fmt, arg...) \
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,11 +666,7 @@ static int get_dimm_config(const struct mem_ctl_info *mci, int *csrow)
RANKOFFSET(dimm_dod[j]),
banks, ranks, rows, cols);

#if PAGE_SHIFT > 20
npages = size >> (PAGE_SHIFT - 20);
#else
npages = size << (20 - PAGE_SHIFT);
#endif
npages = MiB_TO_PAGES(size);

csr = &mci->csrows[*csrow];
csr->first_page = last_page + 1;
Expand Down

0 comments on commit bd67077

Please sign in to comment.