mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[POWERPC] update asm-powerpc/time.h
If we ever build a combined kernel including iSeries, then this will be needed. Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
612f02d6d6
commit
9b47569a9d
1 changed files with 4 additions and 2 deletions
|
|
@ -18,8 +18,9 @@
|
|||
#include <linux/percpu.h>
|
||||
|
||||
#include <asm/processor.h>
|
||||
#ifdef CONFIG_PPC64
|
||||
#ifdef CONFIG_PPC_ISERIES
|
||||
#include <asm/paca.h>
|
||||
#include <asm/firmware.h>
|
||||
#include <asm/iseries/hv_call.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -177,7 +178,8 @@ static inline void set_dec(int val)
|
|||
#ifdef CONFIG_PPC_ISERIES
|
||||
int cur_dec;
|
||||
|
||||
if (get_lppaca()->shared_proc) {
|
||||
if (firmware_has_feature(FW_FEATURE_ISERIES) &&
|
||||
get_lppaca()->shared_proc) {
|
||||
get_lppaca()->virtual_decr = val;
|
||||
cur_dec = get_dec();
|
||||
if (cur_dec > val)
|
||||
|
|
|
|||
Loading…
Reference in a new issue