Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185117
b: refs/heads/master
c: b74fd23
h: refs/heads/master
i:
  185115: 91e67a7
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Feb 11, 2010
1 parent 8e99af1 commit 384cfea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 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: 27811d8cabe56e0c3622251b049086f49face4ff
refs/heads/master: b74fd238a9cf39a81d94152f375b756bf795b4af
16 changes: 8 additions & 8 deletions trunk/arch/x86/pci/bus_numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ void x86_pci_root_bus_res_quirks(struct pci_bus *b)
}
}

void __devinit update_res(struct pci_root_info *info, size_t start,
size_t end, unsigned long flags, int merge)
void __devinit update_res(struct pci_root_info *info, resource_size_t start,
resource_size_t end, unsigned long flags, int merge)
{
int i;
struct resource *res;
Expand All @@ -65,20 +65,20 @@ void __devinit update_res(struct pci_root_info *info, size_t start,

/* try to merge it with old one */
for (i = 0; i < info->res_num; i++) {
size_t final_start, final_end;
size_t common_start, common_end;
resource_size_t final_start, final_end;
resource_size_t common_start, common_end;

res = &info->res[i];
if (res->flags != flags)
continue;

common_start = max((size_t)res->start, start);
common_end = min((size_t)res->end, end);
common_start = max(res->start, start);
common_end = min(res->end, end);
if (common_start > common_end + 1)
continue;

final_start = min((size_t)res->start, start);
final_end = max((size_t)res->end, end);
final_start = min(res->start, start);
final_end = max(res->end, end);

res->start = final_start;
res->end = final_end;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/pci/bus_numa.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ extern int pci_root_num;
extern struct pci_root_info pci_root_info[PCI_ROOT_NR];
extern int found_all_numa_early;

extern void update_res(struct pci_root_info *info, size_t start,
size_t end, unsigned long flags, int merge);
extern void update_res(struct pci_root_info *info, resource_size_t start,
resource_size_t end, unsigned long flags, int merge);
#endif

0 comments on commit 384cfea

Please sign in to comment.