ALT Linux Bugzilla
– Attachment 5578 Details for
Bug 27782
irqbalance 1.x.x не годится для ядер младше 2.6.33
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Патч, добавляющий символьные ссылки.
linux-2.6.32-add_numa_node_symlink_for_cpu_devices_in_sysfs.patch (text/plain), 1.01 KB, created by
Sergey Y. Afonin
on 2012-09-30 18:36:21 MSK
(
hide
)
Description:
Патч, добавляющий символьные ссылки.
Filename:
MIME Type:
Creator:
Sergey Y. Afonin
Created:
2012-09-30 18:36:21 MSK
Size:
1.01 KB
patch
obsolete
>based on >http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=1830794ae6392ce12d36dbcc5ff52f11298ddab6 > >--- a/drivers/base/node.c 2012-09-30 15:48:35.000000000 +0400 >+++ b/drivers/base/node.c 2012-09-30 15:51:52.000000000 +0400 >@@ -275,12 +275,20 @@ > int register_cpu_under_node(unsigned int cpu, unsigned int nid) > { > if (node_online(nid)) { >+ int ret; > struct sys_device *obj = get_cpu_sysdev(cpu); >+ > if (!obj) > return 0; >- return sysfs_create_link(&node_devices[nid].sysdev.kobj, >+ ret = sysfs_create_link(&node_devices[nid].sysdev.kobj, > &obj->kobj, > kobject_name(&obj->kobj)); >+ if (ret) >+ return ret; >+ >+ return sysfs_create_link(&obj->kobj, >+ &node_devices[nid].sysdev.kobj, >+ kobject_name(&node_devices[nid].sysdev.kobj)); > } > > return 0; >@@ -293,6 +301,8 @@ > if (obj) > sysfs_remove_link(&node_devices[nid].sysdev.kobj, > kobject_name(&obj->kobj)); >+ sysfs_remove_link(&obj->kobj, >+ kobject_name(&node_devices[nid].sysdev.kobj)); > } > return 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27782
: 5578