Skip to content
Snippets Groups Projects
Select Git revision
  • f1f0f330b1d0ac1bcc38d7c84d439f4fde341a9c
  • master default
  • b4/phy-realtek-clock-fix
  • b4/rk3576-rock4d-phy-timings
  • b4/dw-wdt-fix-initial-timeout
  • radxa-v6.1-vendor-kernel
  • b4/fusb302-race-condition-fix
  • b4/rk3576-rock4d-phy-handling-fixes
  • b4/rk3588-evb1-hdmi-rx
  • b4/rk3576-fix-fspi-pmdomain
  • b4/usbc-for-rock5bp
  • b4/rock5bp-for-upstream
  • rockchip-devel
  • rk3588-test
  • rk3588-test-vendor-cam
  • lf-6.6.y_6.6.23-2.0.0_var01-panfrost
  • rk3588-linked-clk-gate-for-upstream
  • rk3588-gpu-pwr-domain-for-upstream
  • rk3588-rock5b-usbc-for-upstream
  • rk3588-evb1-for-upstream
  • imx95-upstream-with-vendor-display-stack
  • v5.17
  • v5.17-rc8
  • v5.17-rc7
  • v5.17-rc6
  • v5.17-rc5
  • v5.17-rc4
  • v5.17-rc3
  • v5.17-rc2
  • v5.17-rc1
  • v5.16
  • v5.16-rc8
  • v5.16-rc7
  • v5.16-rc6
  • v5.16-rc5
  • v5.16-rc4
  • v5.16-rc3
  • v5.16-rc2
  • v5.16-rc1
  • v5.15
  • v5.15-rc7
41 results

crypto_wq.c

Blame
  • crypto_wq.c 972 B
    /*
     * Workqueue for crypto subsystem
     *
     * Copyright (c) 2009 Intel Corp.
     *   Author: Huang Ying <ying.huang@intel.com>
     *
     * This program is free software; you can redistribute it and/or modify it
     * under the terms of the GNU General Public License as published by the Free
     * Software Foundation; either version 2 of the License, or (at your option)
     * any later version.
     *
     */
    
    #include <linux/workqueue.h>
    #include <linux/module.h>
    #include <crypto/algapi.h>
    #include <crypto/crypto_wq.h>
    
    struct workqueue_struct *kcrypto_wq;
    EXPORT_SYMBOL_GPL(kcrypto_wq);
    
    static int __init crypto_wq_init(void)
    {
    	kcrypto_wq = alloc_workqueue("crypto",
    				     WQ_MEM_RECLAIM | WQ_CPU_INTENSIVE, 1);
    	if (unlikely(!kcrypto_wq))
    		return -ENOMEM;
    	return 0;
    }
    
    static void __exit crypto_wq_exit(void)
    {
    	destroy_workqueue(kcrypto_wq);
    }
    
    subsys_initcall(crypto_wq_init);
    module_exit(crypto_wq_exit);
    
    MODULE_LICENSE("GPL");
    MODULE_DESCRIPTION("Workqueue for crypto subsystem");