[PATCH v5 4/6] pv-qspinlock: powerpc support pv-qspinlock

2016-06-02 Thread Pan Xinhui
As we need let pv-qspinlock-kernel run on all environment which might have no powervm, we should runtime choose which qspinlock version to use. The default pv-qspinlock use native version. pv_lock initialization should be done in bootstage with irq disabled. And if there is PHYP, restore

[PATCH v5 4/6] pv-qspinlock: powerpc support pv-qspinlock

2016-06-02 Thread Pan Xinhui
As we need let pv-qspinlock-kernel run on all environment which might have no powervm, we should runtime choose which qspinlock version to use. The default pv-qspinlock use native version. pv_lock initialization should be done in bootstage with irq disabled. And if there is PHYP, restore