void compat_pat_wc_shutdown(void) { EFRM_ASSERT(compat_pat_wc.inited); if( --compat_pat_wc.inited ) return; if( compat_pat_wc.pat_modified ) restore_pat(); }
void mlx4_disable_wc(void) { if (wc_enabled) { if (!restore_pat()) wc_enabled = 0; else printk(KERN_INFO "ib_mlx4: failed to disable WC\n"); } }