aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/include/asm/system.h')
-rw-r--r--arch/s390/include/asm/system.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/s390/include/asm/system.h b/arch/s390/include/asm/system.h
index 3f2ccb82b863..3a8b26eb1f2e 100644
--- a/arch/s390/include/asm/system.h
+++ b/arch/s390/include/asm/system.h
@@ -458,22 +458,6 @@ static inline unsigned short stap(void)
458 return cpu_address; 458 return cpu_address;
459} 459}
460 460
461static inline u32 cksm(void *addr, unsigned long len)
462{
463 register unsigned long _addr asm("0") = (unsigned long) addr;
464 register unsigned long _len asm("1") = len;
465 unsigned long accu = 0;
466
467 asm volatile(
468 "0:\n"
469 " cksm %0,%1\n"
470 " jnz 0b\n"
471 : "+d" (accu), "+d" (_addr), "+d" (_len)
472 :
473 : "cc", "memory");
474 return accu;
475}
476
477extern void (*_machine_restart)(char *command); 461extern void (*_machine_restart)(char *command);
478extern void (*_machine_halt)(void); 462extern void (*_machine_halt)(void);
479extern void (*_machine_power_off)(void); 463extern void (*_machine_power_off)(void);