From a372c84652e664370a02e554e1434194be1a5941 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 13 Oct 2010 17:50:02 -0400 Subject: [PATCH] --- yaml --- r: 211680 b: refs/heads/master c: 686a0f3d71203bbfcc186900bbb8ac2cfc3d803c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/kernel.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 10faf3f21b0f..c89f22282d1c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1ae4de0cdf855305765592647025bde55e85e451 +refs/heads/master: 686a0f3d71203bbfcc186900bbb8ac2cfc3d803c diff --git a/trunk/include/linux/kernel.h b/trunk/include/linux/kernel.h index 2b0a35e6bc69..6d6eea7f7b1e 100644 --- a/trunk/include/linux/kernel.h +++ b/trunk/include/linux/kernel.h @@ -59,6 +59,12 @@ extern const char linux_proc_banner[]; #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) +#define rounddown(x, y) ( \ +{ \ + typeof(x) __x = (x); \ + __x - (__x % (y)); \ +} \ +) #define DIV_ROUND_CLOSEST(x, divisor)( \ { \ typeof(divisor) __divisor = divisor; \