Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277247
b: refs/heads/master
c: 2987557
h: refs/heads/master
i:
  277245: b3ceead
  277243: 7c68da5
  277239: fb91583
  277231: 1adc768
  277215: b0bb206
  277183: dba1611
  277119: bc54933
  276991: afef200
v: v3
  • Loading branch information
Josh Triplett authored and Paul E. McKenney committed Dec 11, 2011
1 parent 3d294a9 commit 62e164e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d1dc9a600edf33321bcdc1c808b7957d8a3f3e1
refs/heads/master: 2987557f52b97f679f0c324d8f51b8d66e1f2084
7 changes: 7 additions & 0 deletions trunk/drivers/base/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@ struct sys_device *get_cpu_sysdev(unsigned cpu)
}
EXPORT_SYMBOL_GPL(get_cpu_sysdev);

bool cpu_is_hotpluggable(unsigned cpu)
{
struct sys_device *dev = get_cpu_sysdev(cpu);
return dev && container_of(dev, struct cpu, sysdev)->hotpluggable;
}
EXPORT_SYMBOL_GPL(cpu_is_hotpluggable);

int __init cpu_dev_init(void)
{
int err;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ struct cpu {

extern int register_cpu(struct cpu *cpu, int num);
extern struct sys_device *get_cpu_sysdev(unsigned cpu);
extern bool cpu_is_hotpluggable(unsigned cpu);

extern int cpu_add_sysdev_attr(struct sysdev_attribute *attr);
extern void cpu_remove_sysdev_attr(struct sysdev_attribute *attr);
Expand Down

0 comments on commit 62e164e

Please sign in to comment.