latencytop.c (36d99df2fb474222ab47fbe8ae7385661033223b) | latencytop.c (c33fff0afbef4f0467c99e3f47ee7e98ae78c77e) |
---|---|
1/* 2 * latencytop.c: Latency display infrastructure 3 * 4 * (C) Copyright 2008 Intel Corporation 5 * Author: Arjan van de Ven <arjan@linux.intel.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 219 unchanged lines hidden (view full) --- 228 .read = seq_read, 229 .write = lstats_write, 230 .llseek = seq_lseek, 231 .release = single_release, 232}; 233 234static int __init init_lstats_procfs(void) 235{ | 1/* 2 * latencytop.c: Latency display infrastructure 3 * 4 * (C) Copyright 2008 Intel Corporation 5 * Author: Arjan van de Ven <arjan@linux.intel.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 219 unchanged lines hidden (view full) --- 228 .read = seq_read, 229 .write = lstats_write, 230 .llseek = seq_lseek, 231 .release = single_release, 232}; 233 234static int __init init_lstats_procfs(void) 235{ |
236 struct proc_dir_entry *pe; 237 238 pe = create_proc_entry("latency_stats", 0644, NULL); 239 if (!pe) 240 return -ENOMEM; 241 242 pe->proc_fops = &lstats_fops; 243 | 236 proc_create("latency_stats", 0644, NULL, &lstats_fops); |
244 return 0; 245} 246__initcall(init_lstats_procfs); | 237 return 0; 238} 239__initcall(init_lstats_procfs); |