]> git.proxmox.com Git - mirror_spl.git/blobdiff - include/sys/disp.h
Make file headers conform to ZFS style standard
[mirror_spl.git] / include / sys / disp.h
index a0a1b095720215e40ec7c648d65d86003cd5112a..1994d53ed2769147896b459262f4fc148981e3cf 100644 (file)
@@ -1,4 +1,4 @@
-/*****************************************************************************\
+/*
  *  Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
  *  Copyright (C) 2007 The Regents of the University of California.
  *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
@@ -6,7 +6,7 @@
  *  UCRL-CODE-235197
  *
  *  This file is part of the SPL, Solaris Porting Layer.
- *  For details, see <http://github.com/behlendorf/spl/>.
+ *  For details, see <http://zfsonlinux.org/>.
  *
  *  The SPL is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License as published by the
  *
  *  You should have received a copy of the GNU General Public License along
  *  with the SPL.  If not, see <http://www.gnu.org/licenses/>.
-\*****************************************************************************/
+ */
 
 #ifndef _SPL_DISP_H
 #define _SPL_DISP_H
 
+#include <linux/preempt.h>
+
+#define        kpreempt(unused)        schedule()
+#define        kpreempt_disable()      preempt_disable()
+#define        kpreempt_enable()       preempt_enable()
+
 #endif /* SPL_DISP_H */