Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313867
b: refs/heads/master
c: 2b75475
h: refs/heads/master
i:
  313865: 9c72ca6
  313863: a726f8a
v: v3
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Jul 20, 2012
1 parent e3de1a2 commit b9eef8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 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: 50bb1f761e420776a4d10798babfc76793d4056c
refs/heads/master: 2b7547578b9fdf811072cfc0c3594eb370e7d219
15 changes: 5 additions & 10 deletions trunk/arch/s390/kernel/lgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct lgr_info {
/*
* LGR globals
*/
static void *lgr_page;
static char lgr_page[PAGE_SIZE] __aligned(PAGE_SIZE);
static struct lgr_info lgr_info_last;
static struct lgr_info lgr_info_cur;
static struct debug_info *lgr_dbf;
Expand Down Expand Up @@ -74,7 +74,7 @@ static void cpascii(char *dst, char *src, int size)
*/
static void lgr_stsi_1_1_1(struct lgr_info *lgr_info)
{
struct sysinfo_1_1_1 *si = lgr_page;
struct sysinfo_1_1_1 *si = (void *) lgr_page;

if (stsi(si, 1, 1, 1) == -ENOSYS)
return;
Expand All @@ -91,7 +91,7 @@ static void lgr_stsi_1_1_1(struct lgr_info *lgr_info)
*/
static void lgr_stsi_2_2_2(struct lgr_info *lgr_info)
{
struct sysinfo_2_2_2 *si = lgr_page;
struct sysinfo_2_2_2 *si = (void *) lgr_page;

if (stsi(si, 2, 2, 2) == -ENOSYS)
return;
Expand All @@ -105,7 +105,7 @@ static void lgr_stsi_2_2_2(struct lgr_info *lgr_info)
*/
static void lgr_stsi_3_2_2(struct lgr_info *lgr_info)
{
struct sysinfo_3_2_2 *si = lgr_page;
struct sysinfo_3_2_2 *si = (void *) lgr_page;
int i;

if (stsi(si, 3, 2, 2) == -ENOSYS)
Expand Down Expand Up @@ -183,14 +183,9 @@ static void lgr_timer_set(void)
*/
static int __init lgr_init(void)
{
lgr_page = (void *) __get_free_pages(GFP_KERNEL, 0);
if (!lgr_page)
return -ENOMEM;
lgr_dbf = debug_register("lgr", 1, 1, sizeof(struct lgr_info));
if (!lgr_dbf) {
free_page((unsigned long) lgr_page);
if (!lgr_dbf)
return -ENOMEM;
}
debug_register_view(lgr_dbf, &debug_hex_ascii_view);
lgr_info_get(&lgr_info_last);
debug_event(lgr_dbf, 1, &lgr_info_last, sizeof(lgr_info_last));
Expand Down

0 comments on commit b9eef8a

Please sign in to comment.