X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ia64%2Fprocessor.h;h=9e1b61be5c3bf844106035bd568180d5f9c242fd;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=f62f93c296a4f275ab15f301ec6e81cc46401469;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/asm-ia64/processor.h b/include/asm-ia64/processor.h index f62f93c29..9e1b61be5 100644 --- a/include/asm-ia64/processor.h +++ b/include/asm-ia64/processor.h @@ -28,8 +28,8 @@ #define IA64_NUM_PMC_REGS 32 #define IA64_NUM_PMD_REGS 32 -#define DEFAULT_MAP_BASE 0x2000000000000000 -#define DEFAULT_TASK_SIZE 0xa000000000000000 +#define DEFAULT_MAP_BASE __IA64_UL_CONST(0x2000000000000000) +#define DEFAULT_TASK_SIZE __IA64_UL_CONST(0xa000000000000000) /* * TASK_SIZE really is a mis-named. It really is the maximum user @@ -200,7 +200,7 @@ typedef struct { #define GET_UNALIGN_CTL(task,addr) \ ({ \ put_user(((task)->thread.flags & IA64_THREAD_UAC_MASK) >> IA64_THREAD_UAC_SHIFT, \ - (int *) (addr)); \ + (int __user *) (addr)); \ }) #define SET_FPEMU_CTL(task,value) \ @@ -212,7 +212,7 @@ typedef struct { #define GET_FPEMU_CTL(task,addr) \ ({ \ put_user(((task)->thread.flags & IA64_THREAD_FPEMU_MASK) >> IA64_THREAD_FPEMU_SHIFT, \ - (int *) (addr)); \ + (int __user *) (addr)); \ }) #ifdef CONFIG_IA32_SUPPORT @@ -262,7 +262,7 @@ struct thread_struct { .fdr = 0, \ .old_k1 = 0, \ .old_iob = 0, \ - .ppl = 0, + .ppl = NULL, #else # define INIT_THREAD_IA32 #endif /* CONFIG_IA32_SUPPORT */ @@ -334,6 +334,26 @@ struct task_struct; /* Prepare to copy thread state - unlazy all lazy status */ #define prepare_to_copy(tsk) do { } while (0) +#ifdef CONFIG_NUMA +#define SD_NODE_INIT (struct sched_domain) { \ + .span = CPU_MASK_NONE, \ + .parent = NULL, \ + .groups = NULL, \ + .min_interval = 80, \ + .max_interval = 320, \ + .busy_factor = 320, \ + .imbalance_pct = 125, \ + .cache_hot_time = (10*1000000), \ + .cache_nice_tries = 1, \ + .per_cpu_gain = 100, \ + .flags = SD_BALANCE_EXEC \ + | SD_WAKE_BALANCE, \ + .last_balance = jiffies, \ + .balance_interval = 10, \ + .nr_balance_failed = 0, \ +} +#endif + /* * This is the mechanism for creating a new kernel thread. *