ltq-deu: make deu hash lock global and remove md5_hmac_ exports
[openwrt/staging/dedeckeh.git] / package / kernel / lantiq / ltq-deu / src / ifxmips_deu.h
index 8045c2081a6f583aa36f856f53c1c936ca11c701..3c994cb34652bcbd873984cc082be0524c1e8775 100644 (file)
@@ -131,6 +131,10 @@ void __exit lqdeu_fini_async_des(void);
 void __exit deu_fini (void);
 int deu_dma_init (void);
 
+extern spinlock_t ltq_deu_hash_lock;
+#define CRTCL_SECT_HASH_INIT        spin_lock_init(&ltq_deu_hash_lock)
+#define CRTCL_SECT_HASH_START       spin_lock_irqsave(&ltq_deu_hash_lock, flag)
+#define CRTCL_SECT_HASH_END         spin_unlock_irqrestore(&ltq_deu_hash_lock, flag)
 
 
 #define DEU_WAKELIST_INIT(queue) \