2019-05-27 13:55:01 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2016-12-14 09:36:51 +07:00
|
|
|
/*
|
|
|
|
* Copyright 2017 IBM Corp.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_POWERNV_H
|
|
|
|
#define _ASM_POWERNV_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_PPC_POWERNV
|
|
|
|
extern void powernv_set_nmmu_ptcr(unsigned long ptcr);
|
2017-10-12 17:17:18 +07:00
|
|
|
|
2019-02-12 07:58:29 +07:00
|
|
|
void pnv_program_cpu_hotplug_lpcr(unsigned int cpu, u64 lpcr_val);
|
|
|
|
|
2017-10-12 17:17:18 +07:00
|
|
|
void pnv_tm_init(void);
|
2016-12-14 09:36:51 +07:00
|
|
|
#else
|
|
|
|
static inline void powernv_set_nmmu_ptcr(unsigned long ptcr) { }
|
2017-10-12 17:17:18 +07:00
|
|
|
|
|
|
|
static inline void pnv_tm_init(void) { }
|
2016-12-14 09:36:51 +07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _ASM_POWERNV_H */
|