130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch 639 B

123456789101112131415161718192021
  1. --- a/arch/mips/cavium-octeon/setup.c
  2. +++ b/arch/mips/cavium-octeon/setup.c
  3. @@ -50,6 +50,9 @@ extern void pci_console_init(const char
  4. static unsigned long long MAX_MEMORY = 512ull << 20;
  5. +DEFINE_SEMAPHORE(octeon_bootbus_sem);
  6. +EXPORT_SYMBOL(octeon_bootbus_sem);
  7. +
  8. struct octeon_boot_descriptor *octeon_boot_desc_ptr;
  9. struct cvmx_bootinfo *octeon_bootinfo;
  10. --- a/arch/mips/include/asm/octeon/octeon.h
  11. +++ b/arch/mips/include/asm/octeon/octeon.h
  12. @@ -252,4 +252,6 @@ void octeon_irq_set_ip4_handler(octeon_i
  13. extern void octeon_fixup_irqs(void);
  14. +extern struct semaphore octeon_bootbus_sem;
  15. +
  16. #endif /* __ASM_OCTEON_OCTEON_H */