diff options
author | Olof Johansson <olof@lixom.net> | 2013-06-14 14:07:01 -0700 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-06-14 14:07:53 -0700 |
commit | 9d6dec733b3ebbd6f259d7defbb62f9c62ec2022 (patch) | |
tree | e33fd831b0caa242309943f7d7f5063fe36bcccb /arch/mips/kernel/binfmt_elfn32.c | |
parent | 143b9d01211b883cc56343ca5df25b156bf193ff (diff) | |
parent | e41a5f88b374f7b1d87a72740d186be20cae4aa8 (diff) | |
download | blackbird-op-linux-9d6dec733b3ebbd6f259d7defbb62f9c62ec2022.tar.gz blackbird-op-linux-9d6dec733b3ebbd6f259d7defbb62f9c62ec2022.zip |
Merge tag 'omap-for-v3.11/fixes-non-critical-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/fixes-non-critical
From Tony Lindgren:
Non-critical fixes for omaps for v3.11 merge window.
* tag 'omap-for-v3.11/fixes-non-critical-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: OMAP2+: omap-usb-host: Fix memory leaks
ARM: OMAP2+: Fix serial init for device tree based booting
arm/omap: use const char properly
ARM: OMAP2+: devices: Do not print error when dss_hdmi hwmod lookup fails
ARM: OMAP2+: devices: Do not print error when DMIC hwmod lookup fails
ARM: OMAP2+: devices: Do not print error when McPDM hwmod lookup fails
ARM: OMAP: add vdds_sdi supply for omapdss_sdi.0
ARM: OMAP: add vdds_dsi supply for omapdss_dpi.0
ARM: OMAP: fix dsi regulator names
+ Linux 3.10-rc5
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/mips/kernel/binfmt_elfn32.c')
-rw-r--r-- | arch/mips/kernel/binfmt_elfn32.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/kernel/binfmt_elfn32.c b/arch/mips/kernel/binfmt_elfn32.c index e06f777e9c49..1188e00bb120 100644 --- a/arch/mips/kernel/binfmt_elfn32.c +++ b/arch/mips/kernel/binfmt_elfn32.c @@ -119,4 +119,15 @@ MODULE_AUTHOR("Ralf Baechle (ralf@linux-mips.org)"); #undef TASK_SIZE #define TASK_SIZE TASK_SIZE32 +#undef cputime_to_timeval +#define cputime_to_timeval cputime_to_compat_timeval +static __inline__ void +cputime_to_compat_timeval(const cputime_t cputime, struct compat_timeval *value) +{ + unsigned long jiffies = cputime_to_jiffies(cputime); + + value->tv_usec = (jiffies % HZ) * (1000000L / HZ); + value->tv_sec = jiffies / HZ; +} + #include "../../../fs/binfmt_elf.c" |