Skip to content

Commit

Permalink
[IA64] Prevent sn2 ptc code from executing on all ia64 subarches
Browse files Browse the repository at this point in the history
Patch to prevent sn2_ptc_init code from attempting to load on non-sn2 systems
when sn2_smp.c is built-in to generic kernel.

Signed-off-by: Prarit Bhargava <prarit@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Prarit Bhargava authored and Tony Luck committed Nov 21, 2005
1 parent 48b1dcc commit 9ad4f92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/ia64/sn/kernel/sn2/sn2_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,9 @@ static struct proc_dir_entry *proc_sn2_ptc;

static int __init sn2_ptc_init(void)
{
if (!ia64_platform_is("sn2"))
return -ENOSYS;

if (!(proc_sn2_ptc = create_proc_entry(PTC_BASENAME, 0444, NULL))) {
printk(KERN_ERR "unable to create %s proc entry", PTC_BASENAME);
return -EINVAL;
Expand Down

0 comments on commit 9ad4f92

Please sign in to comment.