Commit f105d55b authored by Anton Blanchard's avatar Anton Blanchard

ppc64: wrap iseries specific stuff in set_dec with ifdef

parent 123038cd
...@@ -73,17 +73,19 @@ static __inline__ unsigned int get_dec(void) ...@@ -73,17 +73,19 @@ static __inline__ unsigned int get_dec(void)
static __inline__ void set_dec(int val) static __inline__ void set_dec(int val)
{ {
#ifdef CONFIG_PPC_ISERIES
struct paca_struct *lpaca = get_paca(); struct paca_struct *lpaca = get_paca();
int cur_dec; int cur_dec;
if ( lpaca->xLpPaca.xSharedProc ) { if (lpaca->xLpPaca.xSharedProc) {
lpaca->xLpPaca.xVirtualDecr = val; lpaca->xLpPaca.xVirtualDecr = val;
cur_dec = get_dec(); cur_dec = get_dec();
if ( cur_dec > val ) if (cur_dec > val)
HvCall_setVirtualDecr(); HvCall_setVirtualDecr();
} else { } else
#else
mtspr(SPRN_DEC, val); mtspr(SPRN_DEC, val);
} #endif
} }
extern __inline__ unsigned long tb_ticks_since(unsigned long tstamp) { extern __inline__ unsigned long tb_ticks_since(unsigned long tstamp) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment