Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140927
b: refs/heads/master
c: 59222ef
h: refs/heads/master
i:
  140925: ec57eed
  140923: 751cf57
  140919: d36a963
  140911: 415815f
  140895: 343fdcb
  140863: 35dcd73
  140799: 06625dc
v: v3
  • Loading branch information
Steven Rostedt committed Mar 13, 2009
1 parent b428628 commit d995202
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 1027fcb206a0fb8348e63aff078c74bdee1c2698
refs/heads/master: 59222efe2d184956464abe5b637bc842ff053b93
10 changes: 5 additions & 5 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ struct ring_buffer {

struct ring_buffer_per_cpu **buffers;

#ifdef CONFIG_HOTPLUG
#ifdef CONFIG_HOTPLUG_CPU
struct notifier_block cpu_notify;
#endif
};
Expand Down Expand Up @@ -464,7 +464,7 @@ static void rb_free_cpu_buffer(struct ring_buffer_per_cpu *cpu_buffer)
*/
extern int ring_buffer_page_too_big(void);

#ifdef CONFIG_HOTPLUG
#ifdef CONFIG_HOTPLUG_CPU
static int __cpuinit rb_cpu_notify(struct notifier_block *self,
unsigned long action, void *hcpu);
#endif
Expand Down Expand Up @@ -523,7 +523,7 @@ struct ring_buffer *ring_buffer_alloc(unsigned long size, unsigned flags)
goto fail_free_buffers;
}

#ifdef CONFIG_HOTPLUG
#ifdef CONFIG_HOTPLUG_CPU
buffer->cpu_notify.notifier_call = rb_cpu_notify;
buffer->cpu_notify.priority = 0;
register_cpu_notifier(&buffer->cpu_notify);
Expand Down Expand Up @@ -562,7 +562,7 @@ ring_buffer_free(struct ring_buffer *buffer)

get_online_cpus();

#ifdef CONFIG_HOTPLUG
#ifdef CONFIG_HOTPLUG_CPU
unregister_cpu_notifier(&buffer->cpu_notify);
#endif

Expand Down Expand Up @@ -2757,7 +2757,7 @@ static __init int rb_init_debugfs(void)

fs_initcall(rb_init_debugfs);

#ifdef CONFIG_HOTPLUG
#ifdef CONFIG_HOTPLUG_CPU
static int __cpuinit rb_cpu_notify(struct notifier_block *self,
unsigned long action, void *hcpu)
{
Expand Down

0 comments on commit d995202

Please sign in to comment.