diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-22 17:04:41 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-22 17:04:41 -0500 |
| commit | 61b80086a525c8a6081257ae40da5dee2bcaee16 (patch) | |
| tree | 675da35e4c03be3a5ca17bf6430e5b51dfed6296 /include/linux | |
| parent | a5f17d1f4c2831b9b9bf8b1a537cdbac995d6e13 (diff) | |
| parent | 230f984662d7e0e4a9597c665fd4f53130666e7d (diff) | |
Merge branch 'entry-macro-cleanup' of git://sources.calxeda.com/kernel/linux into for-armsoc
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/binfmts.h | 3 | ||||
| -rw-r--r-- | include/linux/gpio_keys.h | 2 | ||||
| -rw-r--r--[-rwxr-xr-x] | include/linux/lp8727.h | 0 | ||||
| -rw-r--r-- | include/linux/mfd/twl6040.h | 2 | ||||
| -rw-r--r-- | include/linux/mpi.h | 2 | ||||
| -rw-r--r-- | include/linux/mtd/mtd.h | 6 | ||||
| -rw-r--r-- | include/linux/perf_event.h | 1 | ||||
| -rw-r--r-- | include/linux/pm_qos.h | 14 | ||||
| -rw-r--r-- | include/linux/sched.h | 6 | ||||
| -rw-r--r-- | include/linux/sh_dma.h | 1 |
10 files changed, 29 insertions, 8 deletions
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index fd88a3945aa1..0092102db2de 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h | |||
| @@ -18,7 +18,7 @@ struct pt_regs; | |||
| 18 | #define BINPRM_BUF_SIZE 128 | 18 | #define BINPRM_BUF_SIZE 128 |
| 19 | 19 | ||
| 20 | #ifdef __KERNEL__ | 20 | #ifdef __KERNEL__ |
| 21 | #include <linux/list.h> | 21 | #include <linux/sched.h> |
| 22 | 22 | ||
| 23 | #define CORENAME_MAX_SIZE 128 | 23 | #define CORENAME_MAX_SIZE 128 |
| 24 | 24 | ||
| @@ -58,6 +58,7 @@ struct linux_binprm { | |||
| 58 | unsigned interp_flags; | 58 | unsigned interp_flags; |
| 59 | unsigned interp_data; | 59 | unsigned interp_data; |
| 60 | unsigned long loader, exec; | 60 | unsigned long loader, exec; |
| 61 | char tcomm[TASK_COMM_LEN]; | ||
| 61 | }; | 62 | }; |
| 62 | 63 | ||
| 63 | #define BINPRM_FLAGS_ENFORCE_NONDUMP_BIT 0 | 64 | #define BINPRM_FLAGS_ENFORCE_NONDUMP_BIT 0 |
diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h index b5ca4b2c08ec..004ff33ab38e 100644 --- a/include/linux/gpio_keys.h +++ b/include/linux/gpio_keys.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef _GPIO_KEYS_H | 1 | #ifndef _GPIO_KEYS_H |
| 2 | #define _GPIO_KEYS_H | 2 | #define _GPIO_KEYS_H |
| 3 | 3 | ||
| 4 | struct device; | ||
| 5 | |||
| 4 | struct gpio_keys_button { | 6 | struct gpio_keys_button { |
| 5 | /* Configuration parameters */ | 7 | /* Configuration parameters */ |
| 6 | unsigned int code; /* input event code (KEY_*, SW_*) */ | 8 | unsigned int code; /* input event code (KEY_*, SW_*) */ |
diff --git a/include/linux/lp8727.h b/include/linux/lp8727.h index d21fa2865bf4..d21fa2865bf4 100755..100644 --- a/include/linux/lp8727.h +++ b/include/linux/lp8727.h | |||
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h index 2463c2619596..9bc9ac651dad 100644 --- a/include/linux/mfd/twl6040.h +++ b/include/linux/mfd/twl6040.h | |||
| @@ -187,8 +187,10 @@ struct twl6040 { | |||
| 187 | int rev; | 187 | int rev; |
| 188 | u8 vibra_ctrl_cache[2]; | 188 | u8 vibra_ctrl_cache[2]; |
| 189 | 189 | ||
| 190 | /* PLL configuration */ | ||
| 190 | int pll; | 191 | int pll; |
| 191 | unsigned int sysclk; | 192 | unsigned int sysclk; |
| 193 | unsigned int mclk; | ||
| 192 | 194 | ||
| 193 | unsigned int irq; | 195 | unsigned int irq; |
| 194 | unsigned int irq_base; | 196 | unsigned int irq_base; |
diff --git a/include/linux/mpi.h b/include/linux/mpi.h index 06f88994ccaa..d02cca6cc8ce 100644 --- a/include/linux/mpi.h +++ b/include/linux/mpi.h | |||
| @@ -57,8 +57,6 @@ struct gcry_mpi { | |||
| 57 | 57 | ||
| 58 | typedef struct gcry_mpi *MPI; | 58 | typedef struct gcry_mpi *MPI; |
| 59 | 59 | ||
| 60 | #define MPI_NULL NULL | ||
| 61 | |||
| 62 | #define mpi_get_nlimbs(a) ((a)->nlimbs) | 60 | #define mpi_get_nlimbs(a) ((a)->nlimbs) |
| 63 | #define mpi_is_neg(a) ((a)->sign) | 61 | #define mpi_is_neg(a) ((a)->sign) |
| 64 | 62 | ||
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 221295208fd0..d43dc25af82e 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
| @@ -427,9 +427,7 @@ static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) | |||
| 427 | 427 | ||
| 428 | static inline int mtd_suspend(struct mtd_info *mtd) | 428 | static inline int mtd_suspend(struct mtd_info *mtd) |
| 429 | { | 429 | { |
| 430 | if (!mtd->suspend) | 430 | return mtd->suspend ? mtd->suspend(mtd) : 0; |
| 431 | return -EOPNOTSUPP; | ||
| 432 | return mtd->suspend(mtd); | ||
| 433 | } | 431 | } |
| 434 | 432 | ||
| 435 | static inline void mtd_resume(struct mtd_info *mtd) | 433 | static inline void mtd_resume(struct mtd_info *mtd) |
| @@ -489,7 +487,7 @@ static inline int mtd_has_oob(const struct mtd_info *mtd) | |||
| 489 | 487 | ||
| 490 | static inline int mtd_can_have_bb(const struct mtd_info *mtd) | 488 | static inline int mtd_can_have_bb(const struct mtd_info *mtd) |
| 491 | { | 489 | { |
| 492 | return 0; | 490 | return !!mtd->block_isbad; |
| 493 | } | 491 | } |
| 494 | 492 | ||
| 495 | /* Kernel-side ioctl definitions */ | 493 | /* Kernel-side ioctl definitions */ |
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 08855613ceb3..abb2776be1ba 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
| @@ -587,6 +587,7 @@ struct hw_perf_event { | |||
| 587 | u64 sample_period; | 587 | u64 sample_period; |
| 588 | u64 last_period; | 588 | u64 last_period; |
| 589 | local64_t period_left; | 589 | local64_t period_left; |
| 590 | u64 interrupts_seq; | ||
| 590 | u64 interrupts; | 591 | u64 interrupts; |
| 591 | 592 | ||
| 592 | u64 freq_time_stamp; | 593 | u64 freq_time_stamp; |
diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index e5bbcbaa6f57..4d99e4e6ef83 100644 --- a/include/linux/pm_qos.h +++ b/include/linux/pm_qos.h | |||
| @@ -110,7 +110,19 @@ static inline void pm_qos_remove_request(struct pm_qos_request *req) | |||
| 110 | { return; } | 110 | { return; } |
| 111 | 111 | ||
| 112 | static inline int pm_qos_request(int pm_qos_class) | 112 | static inline int pm_qos_request(int pm_qos_class) |
| 113 | { return 0; } | 113 | { |
| 114 | switch (pm_qos_class) { | ||
| 115 | case PM_QOS_CPU_DMA_LATENCY: | ||
| 116 | return PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; | ||
| 117 | case PM_QOS_NETWORK_LATENCY: | ||
| 118 | return PM_QOS_NETWORK_LAT_DEFAULT_VALUE; | ||
| 119 | case PM_QOS_NETWORK_THROUGHPUT: | ||
| 120 | return PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE; | ||
| 121 | default: | ||
| 122 | return PM_QOS_DEFAULT_VALUE; | ||
| 123 | } | ||
| 124 | } | ||
| 125 | |||
| 114 | static inline int pm_qos_add_notifier(int pm_qos_class, | 126 | static inline int pm_qos_add_notifier(int pm_qos_class, |
| 115 | struct notifier_block *notifier) | 127 | struct notifier_block *notifier) |
| 116 | { return 0; } | 128 | { return 0; } |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2234985a5e65..7d379a6bfd88 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -2259,6 +2259,12 @@ static inline void mmdrop(struct mm_struct * mm) | |||
| 2259 | extern void mmput(struct mm_struct *); | 2259 | extern void mmput(struct mm_struct *); |
| 2260 | /* Grab a reference to a task's mm, if it is not already going away */ | 2260 | /* Grab a reference to a task's mm, if it is not already going away */ |
| 2261 | extern struct mm_struct *get_task_mm(struct task_struct *task); | 2261 | extern struct mm_struct *get_task_mm(struct task_struct *task); |
| 2262 | /* | ||
| 2263 | * Grab a reference to a task's mm, if it is not already going away | ||
| 2264 | * and ptrace_may_access with the mode parameter passed to it | ||
| 2265 | * succeeds. | ||
| 2266 | */ | ||
| 2267 | extern struct mm_struct *mm_access(struct task_struct *task, unsigned int mode); | ||
| 2262 | /* Remove the current tasks stale references to the old mm_struct */ | 2268 | /* Remove the current tasks stale references to the old mm_struct */ |
| 2263 | extern void mm_release(struct task_struct *, struct mm_struct *); | 2269 | extern void mm_release(struct task_struct *, struct mm_struct *); |
| 2264 | /* Allocate a new mm structure and copy contents from tsk->mm */ | 2270 | /* Allocate a new mm structure and copy contents from tsk->mm */ |
diff --git a/include/linux/sh_dma.h b/include/linux/sh_dma.h index 8cd7fe59cf1a..425450b980b8 100644 --- a/include/linux/sh_dma.h +++ b/include/linux/sh_dma.h | |||
| @@ -70,6 +70,7 @@ struct sh_dmae_pdata { | |||
| 70 | unsigned int needs_tend_set:1; | 70 | unsigned int needs_tend_set:1; |
| 71 | unsigned int no_dmars:1; | 71 | unsigned int no_dmars:1; |
| 72 | unsigned int chclr_present:1; | 72 | unsigned int chclr_present:1; |
| 73 | unsigned int slave_only:1; | ||
| 73 | }; | 74 | }; |
| 74 | 75 | ||
| 75 | /* DMA register */ | 76 | /* DMA register */ |
