cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

delay.h (647B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 *  S390 version
      4 *    Copyright IBM Corp. 1999
      5 *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
      6 *
      7 *  Derived from "include/asm-i386/delay.h"
      8 *    Copyright (C) 1993 Linus Torvalds
      9 *
     10 *  Delay routines calling functions in arch/s390/lib/delay.c
     11 */
     12 
     13#ifndef _S390_DELAY_H
     14#define _S390_DELAY_H
     15
     16void __ndelay(unsigned long nsecs);
     17void __udelay(unsigned long usecs);
     18void __delay(unsigned long loops);
     19
     20#define ndelay(n) __ndelay((unsigned long)(n))
     21#define udelay(n) __udelay((unsigned long)(n))
     22#define mdelay(n) __udelay((unsigned long)(n) * 1000)
     23
     24#endif /* defined(_S390_DELAY_H) */