diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-07-29 01:28:20 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-11-29 23:31:51 -0500 |
commit | 4e7c77a385efac81d6677a4a761b1b66cd2cb59e (patch) | |
tree | 1335c5cdf9529e656043fc6f92bffdb67e2f2532 /arch/powerpc/platforms/pseries | |
parent | 74d51d029818eca9d1aec22dd2895e269c0044b1 (diff) |
powerpc/nvram: More flexible nvram_create_partition()
Replace nvram_create_os_partition() with a variant that takes
the partition name, signature and size as arguments.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r-- | arch/powerpc/platforms/pseries/nvram.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/pseries/nvram.c b/arch/powerpc/platforms/pseries/nvram.c index f4e4c06284b..2a1ef5c2534 100644 --- a/arch/powerpc/platforms/pseries/nvram.c +++ b/arch/powerpc/platforms/pseries/nvram.c | |||
@@ -22,14 +22,14 @@ | |||
22 | #include <asm/prom.h> | 22 | #include <asm/prom.h> |
23 | #include <asm/machdep.h> | 23 | #include <asm/machdep.h> |
24 | 24 | ||
25 | /* Max bytes to read/write in one go */ | ||
26 | #define NVRW_CNT 0x20 | ||
27 | |||
25 | static unsigned int nvram_size; | 28 | static unsigned int nvram_size; |
26 | static int nvram_fetch, nvram_store; | 29 | static int nvram_fetch, nvram_store; |
27 | static char nvram_buf[NVRW_CNT]; /* assume this is in the first 4GB */ | 30 | static char nvram_buf[NVRW_CNT]; /* assume this is in the first 4GB */ |
28 | static DEFINE_SPINLOCK(nvram_lock); | 31 | static DEFINE_SPINLOCK(nvram_lock); |
29 | 32 | ||
30 | /* Max bytes to read/write in one go */ | ||
31 | #define NVRW_CNT 0x20 | ||
32 | |||
33 | static ssize_t pSeries_nvram_read(char *buf, size_t count, loff_t *index) | 33 | static ssize_t pSeries_nvram_read(char *buf, size_t count, loff_t *index) |
34 | { | 34 | { |
35 | unsigned int i; | 35 | unsigned int i; |