Commit be5b7a8987f23281b146f22b13e2079f448c69c7

Authored by Andrew Morton
Committed by Linus Torvalds
1 parent 45e0b78b05

[PATCH] arch/i386/pci/mmconfig.c tweaks

- Add soothing comment

- uninline thrice-called function

Cc: OGAWA Hirofumi <hogawa@miraclelinux.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

arch/i386/pci/mmconfig.c
... ... @@ -67,7 +67,10 @@
67 67 return 0;
68 68 }
69 69  
70   -static inline void pci_exp_set_dev_base(unsigned int base, int bus, int devfn)
  70 +/*
  71 + * This is always called under pci_config_lock
  72 + */
  73 +static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn)
71 74 {
72 75 u32 dev_base = base | (bus << 20) | (devfn << 12);
73 76 if (dev_base != mmcfg_last_accessed_device) {