Skip to content

Commit

Permalink
[IA64] Fix example error injection program
Browse files Browse the repository at this point in the history
Progam accessed using /sys/devices/system/node/node0/cpu%d/err_inject/
This path only exists for CONFIG_NUMA=y systems.  Better to use
/sys/devices/system/cpu/cpu%d/err_inject/ which is available on all
systems.

Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
aegl committed Feb 5, 2007
1 parent 1138b7e commit e1b43bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/ia64/err_inject.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ err_injection_tool.c:
#define ERR_DATA_BUFFER_SIZE 3 // Three 8-byte.
#define PARA_FIELD_NUM 5
#define MASK_SIZE (NR_CPUS/64)
#define PATH_FORMAT "/sys/devices/system/node/node0/cpu%d/err_inject/"
#define PATH_FORMAT "/sys/devices/system/cpu/cpu%d/err_inject/"

int sched_setaffinity(pid_t pid, unsigned int len, unsigned long *mask);

Expand Down

0 comments on commit e1b43bd

Please sign in to comment.