Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106891
b: refs/heads/master
c: 3cee67f
h: refs/heads/master
i:
  106889: bb10abb
  106887: 59ccb7b
v: v3
  • Loading branch information
Stephen Rothwell authored and Benjamin Herrenschmidt committed Jul 28, 2008
1 parent 5871074 commit 6371c8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dec2b0d0cc64e495a3c9c5700fa7a3b397b5e855
refs/heads/master: 3cee67f77922721e90c1573d84c07e18c5508713
8 changes: 6 additions & 2 deletions trunk/arch/powerpc/platforms/pseries/cmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ static int cmm_thread(void *dummy)
}

#define CMM_SHOW(name, format, args...) \
static ssize_t show_##name(struct sys_device *dev, char *buf) \
static ssize_t show_##name(struct sys_device *dev, \
struct sysdev_attribute *attr, \
char *buf) \
{ \
return sprintf(buf, format, ##args); \
} \
Expand All @@ -298,12 +300,14 @@ static int cmm_thread(void *dummy)
CMM_SHOW(loaned_kb, "%lu\n", PAGES2KB(loaned_pages));
CMM_SHOW(loaned_target_kb, "%lu\n", PAGES2KB(loaned_pages_target));

static ssize_t show_oom_pages(struct sys_device *dev, char *buf)
static ssize_t show_oom_pages(struct sys_device *dev,
struct sysdev_attribute *attr, char *buf)
{
return sprintf(buf, "%lu\n", PAGES2KB(oom_freed_pages));
}

static ssize_t store_oom_pages(struct sys_device *dev,
struct sysdev_attribute *attr,
const char *buf, size_t count)
{
unsigned long val = simple_strtoul (buf, NULL, 10);
Expand Down

0 comments on commit 6371c8c

Please sign in to comment.